乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 75|回复: 1

[编程交流] 错误正文错误

[复制链接]

13

主题

48

帖子

35

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
65
发表于 2022-7-6 07:27:58 | 显示全部楼层 |阅读模式
大家好,
 
好久不见。我似乎有问题,我无法解决。
 
长话短说,我制作了一个网站,允许用户通过ID将USB驱动器分配给公司。在USB驱动器注册后,在MP中使用(downloadlisp)功能。Fas将下载所有指定的Lisp/Fas文件到所述客户。
 
现在它对我来说非常有效,但工作中的一个人有点问题。我以前从未见过这个错误,我似乎找不到它的文档,所以说一点都让我困惑。在这个问题上有任何帮助都会很好。提前为文字墙道歉。在这件事上,说一点都让我困惑。在这个问题上有任何帮助都会很好。提前为文字墙道歉。
 
His-错误
  1. Command: (LOAD "E:/Loader.LSP")
  2. MP.fas
  3. Downloading ...
  4. Downloading ...
  5. Downloading ...
  6. Downloading ...
  7. Downloading ...; error: invalid binary file format: bad body(2)

 
采矿-工作
  1. Command: (LOAD "F:/Loader.LSP")
  2. MP.fas
  3. Downloading ...
  4. Downloading ...
  5. Downloading ...
  6. Downloading ...
  7. Downloading ...
  8. MP.fas
  9. U-Scale by text.fas
  10. U-Scale Block.fas
  11. U-Round.fas
  12. U-Pdfprint.fas

 
装载机。lsp
  1. (vl-load-com)
  2. (progn
  3. (setq quiet 0) ;; 0 for quiet 1 for alert
  4. (setq dirltr (list "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"))
  5. (foreach Dir dirltr
  6. (if (or (/= (findfile (strcat Dir":\\Loader.lsp")) nil) (/= (findfile (strcat Dir":\\Loader.fas")) nil))
  7. (setq Path Dir)
  8. )
  9. )
  10. (setq lload (List ))
  11. (foreach file (vl-directory-files (strcat Path ":\") "*.fas")
  12. (setq lload (append lload (list file)))
  13. )
  14. (foreach file (vl-directory-files (strcat Path ":\") "*.lsp")
  15. (setq lload (append lload (list file)))
  16. )
  17. (Foreach lisp Lload
  18. (if (not (or (= (strcase lisp) (strcase "Loader.lsp")) (= (strcase lisp) (strcase "Loader.fas"))))
  19. (progn
  20. (load (strcat Path ":\" Lisp))
  21. (if (= quiet 1)
  22. (alert Lisp)
  23. (princ (strcat lisp "\r\n"))
  24. )
  25. )
  26. )
  27. )
  28. (DownloadLisp)
  29. (Foreach lisp Lload
  30. (if (not (or (= (strcase lisp) (strcase "Loader.lsp")) (= (strcase lisp) (strcase "Loader.fas"))))
  31. (progn
  32. (load (strcat Path ":\" Lisp))
  33. (if (= quiet 1)
  34. (alert Lisp)
  35. (princ (strcat lisp "\r\n"))
  36. )
  37. )
  38. )
  39. )
  40. )

 
新装载机。Lsp(不是对他的测试,而是对我的测试)
  1. (vl-load-com)
  2. (progn
  3. (setq d (rtos (getvar "CDATE") 2 6)
  4. yr (substr d 3 2)
  5. mo (substr d 5 2)
  6. day (substr d 7 2)
  7. )
  8. (setq date (strcat mo "-" day "-" yr))
  9. (setq quiet 0) ;; 0 for quiet 1 for alert
  10. (setq dirltr (list "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"))
  11. (foreach Dir dirltr
  12.    (if (or (/= (findfile (strcat Dir":\\Loader.lsp")) nil) (/= (findfile (strcat Dir":\\Loader.fas")) nil))
  13.      (setq Path Dir)
  14.      )
  15.    )
  16. (setq lload (List ))
  17. (foreach file (vl-directory-files (strcat Path ":\") "*.fas")
  18.    (setq lload (append lload (list file)))
  19.    )
  20. (foreach file (vl-directory-files (strcat Path ":\") "*.lsp")
  21.    (setq lload (append lload (list file)))
  22.    )
  23. (Foreach lisp Lload
  24.    (if (not (or (= (strcase lisp) (strcase "Loader.lsp")) (= (strcase lisp) (strcase "Loader.fas"))))
  25.      (progn
  26. (load (strcat Path ":\" Lisp))
  27. (if (= quiet 1)
  28.   (alert Lisp)
  29.   (princ (strcat lisp "\r\n"))
  30.   )
  31. )
  32.      )
  33.    )
  34. (if (not (vl-registry-read "HKEY_CURRENT_USER\\AutoCADLastLispUpdate"))
  35.    (vl-registry-write "HKEY_CURRENT_USER\\AutoCADLastLispUpdate" "" Date)
  36.    )
  37. (if (/= (vl-registry-read "HKEY_CURRENT_USER\\AutoCADLastLispUpdate") Date)
  38.    (progn
  39.      (vl-registry-write "HKEY_CURRENT_USER\\AutoCADLastLispUpdate" "" Date)
  40.      (DownloadLisp)
  41.      (setq lload (List ))
  42.      (foreach file (vl-directory-files (strcat Path ":\") "*.fas")
  43. (setq lload (append lload (list file)))
  44. )
  45.      (foreach file (vl-directory-files (strcat Path ":\") "*.lsp")
  46. (setq lload (append lload (list file)))
  47. )
  48.      (Foreach lisp Lload
  49. (if (not (or (= (strcase lisp) (strcase "Loader.lsp")) (= (strcase lisp) (strcase "Loader.fas"))))
  50.   (progn
  51.     (load (strcat Path ":\" Lisp))
  52.     (if (= quiet 1)
  53.       (alert Lisp)
  54.       (princ (strcat lisp "\r\n"))
  55.       )
  56.     )
  57.   )
  58. )
  59.      )
  60.    )
  61. )
回复

使用道具 举报

13

主题

48

帖子

35

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
65
发表于 2022-7-6 08:51:46 | 显示全部楼层
**已解决**
 
我会使用命令(load“Z:\\MP.FAS”),它会给出错误。
但是,如果我使用命令(load“Z:\\MP.lsp”),那就好了。
所以,我想它在AutoCAD中被破坏了,在这一点上,我让他卸载并重新安装AutoCAD。
然后我再次尝试(加载“Z:\\MP.FAS”),它仍然给我错误。
于是,我想到了这个坏掉的AutoCAD可能没有正确下载。
然后我又把我的工作副本复制到它上面。
而且,vualla,它现在工作得很好。他今天用了整整6个小时,没有任何问题。
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 05:03 , Processed in 0.451207 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表