乐筑天下

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

[编程交流] 自动加载lisp

[复制链接]

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 08:06:31 | 显示全部楼层
似乎您错过了路径的结束引号(请检查所有行):
  1. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\attnumber.lsp[color=red]"[/color] (prompt "\nUnable to load attnumber!"))
回复

使用道具 举报

8

主题

45

帖子

37

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 08:11:55 | 显示全部楼层
 
仍然无法工作,我的文件现在显示:
 
  1. (if
  2. (and
  3. (not (menugroup "mmacad"))
  4. (findfile "mmacad.cuix")
  5. );and
  6. (command "menuload" "mmacad.cuix")
  7. );if
  8. (and
  9. (menugroup "mmacad")
  10. (menucmd "p50=+MMACAD.POP1")
  11. );and
  12. (setvar "SAVETIME" 10)
  13. (setvar "layernotify" 0)
  14. (setvar "layereval" 0)
  15. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\attnumber.lsp” (prompt "\nUnable to load Routine1st!"))
  16. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\BlkImport.lsp” (prompt "\nUnable to load Routine1st!"))
  17. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\ChangeBlockInsertionV1-3.lsp” (prompt "\nUnable to load Routine1st!"))
  18. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\copyinc.lsp” (prompt "\nUnable to load Routine1st!"))
  19. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\dimcurve.lsp” (prompt "\nUnable to load Routine1st!"))
  20. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\fa.lsp” (prompt "\nUnable to load Routine1st!"))
  21. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\fixtxt.lsp” (prompt "\nUnable to load Routine1st!"))
  22. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\grd.lsp” (prompt "\nUnable to load Routine1st!"))
  23. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\insertall.lsp” (prompt "\nUnable to load Routine1st!"))
  24. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LabelV1-1.lsp” (prompt "\nUnable to load Routine1st!"))
  25. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LayerDirectorV1-1[1].lsp” (prompt "\nUnable to load Routine1st!"))
  26. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LayoutTools.lsp” (prompt "\nUnable to load Routine1st!"))
  27. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LDOrderV1-2.lsp” (prompt "\nUnable to load Routine1st!"))
  28. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\Legend.lsp” (prompt "\nUnable to load Routine1st!"))
  29. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\List block.lsp” (prompt "\nUnable to load Routine1st!"))
  30. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\ll.lsp” (prompt "\nUnable to load Routine1st!"))
  31. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\MaskV1-0.lsp” (prompt "\nUnable to load Routine1st!"))
  32. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\normblocks.lsp” (prompt "\nUnable to load Routine1st!"))
  33. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\num.lsp” (prompt "\nUnable to load Routine1st!"))
  34. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\ple.lsp” (prompt "\nUnable to load Routine1st!"))
  35. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\plen.lsp” (prompt "\nUnable to load Routine1st!"))
  36. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pline-3d-2d.lsp” (prompt "\nUnable to load Routine1st!"))
  37. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pllen.lsp” (prompt "\nUnable to load Routine1st!"))
  38. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\polylen.lsp” (prompt "\nUnable to load Routine1st!"))
  39. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pst.lsp” (prompt "\nUnable to load Routine1st!"))
  40. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pt2blk.lsp” (prompt "\nUnable to load Routine1st!"))
  41. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\PtManagerV2-4[1].lsp” (prompt "\nUnable to load Routine1st!"))
  42. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\reorderpoints.lsp” (prompt "\nUnable to load Routine1st!"))
  43. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\StripMtext v5-0c.lsp” (prompt "\nUnable to load Routine1st!"))
  44. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\super.lsp” (prompt "\nUnable to load Routine1st!"))
  45. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\SuperFlatten 1.2b.lsp” (prompt "\nUnable to load Routine1st!"))
  46. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\t2m.lsp” (prompt "\nUnable to load Routine1st!"))
  47. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\TL.lsp” (prompt "\nUnable to load Routine1st!"))
  48. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\TrailpitswithTable.lsp” (prompt "\nUnable to load Routine1st!"))
  49. (princ)
回复

使用道具 举报

8

主题

45

帖子

37

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 08:13:45 | 显示全部楼层
对不起,我做错了
回复

使用道具 举报

8

主题

45

帖子

37

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 08:18:19 | 显示全部楼层
好的,我用了李的Macs“ACADDOC.lsp Creator”,它自动帮我完成了。它似乎可以工作,但是,它只适用于“LabelV1-1.lsp”,低于这个lisp的任何东西都不起作用,真的很奇怪。。。。如果我手动加载Lisp,它们就可以工作。我的代码现在显示:
 
  1. (if
  2. (and
  3. (not (menugroup "mmacad"))
  4. (findfile "mmacad.cuix")
  5. );and
  6. (command "menuload" "mmacad.cuix")
  7. );if
  8. (and
  9. (menugroup "mmacad")
  10. (menucmd "p50=+MMACAD.POP1")
  11. );and
  12. (setvar "SAVETIME" 10)
  13. (setvar "layernotify" 0)
  14. (setvar "layereval" 0)
  15. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\attnumber.lsp" "--> Failed to Load: attnumber")
  16. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\BlkImport.lsp" "--> Failed to Load: BlkImport")
  17. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\ChangeBlockInsertionV1-3.lsp" "--> Failed to Load: ChangeBlockInsertionV1-3")
  18. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\copyinc.lsp" "--> Failed to Load: copyinc")
  19. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\dimcurve.lsp" "--> Failed to Load: dimcurve")
  20. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\fa.lsp" "--> Failed to Load: fa")
  21. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\fixtxt.lsp" "--> Failed to Load: fixtxt")
  22. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\grd.lsp" "--> Failed to Load: grd")
  23. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\insertall.lsp" "--> Failed to Load: insertall")
  24. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LabelV1-1.lsp" "--> Failed to Load: LabelV1-1")
  25. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LayerDirectorV1-1[1].lsp" "--> Failed to Load: LayerDirectorV1-1[1]")
  26. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LayoutTools.lsp" "--> Failed to Load: LayoutTools")
  27. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\LDOrderV1-2.lsp" "--> Failed to Load: LDOrderV1-2")
  28. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\Legend.lsp" "--> Failed to Load: Legend")
  29. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\List block.lsp" "--> Failed to Load: List block")
  30. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\ll.lsp" "--> Failed to Load: ll")
  31. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\MaskV1-0.lsp" "--> Failed to Load: MaskV1-0")
  32. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\normblocks.lsp" "--> Failed to Load: normblocks")
  33. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\num.lsp" "--> Failed to Load: num")
  34. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\ple.lsp" "--> Failed to Load: ple")
  35. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\plen.lsp" "--> Failed to Load: plen")
  36. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pline-3d-2d.lsp" "--> Failed to Load: pline-3d-2d")
  37. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pllen.lsp" "--> Failed to Load: pllen")
  38. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\polylen.lsp" "--> Failed to Load: polylen")
  39. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pst.lsp" "--> Failed to Load: pst")
  40. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\pt2block.lsp" "--> Failed to Load: pt2block")
  41. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\PtManagerV2-4[1].lsp" "--> Failed to Load: PtManagerV2-4[1]")
  42. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\reorderpoints.lsp" "--> Failed to Load: reorderpoints")
  43. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\StripMtext v5-0c.lsp" "--> Failed to Load: StripMtext v5-0c")
  44. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\super.lsp" "--> Failed to Load: super")
  45. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\SuperFlatten 1.2b.lsp" "--> Failed to Load: SuperFlatten 1.2b")
  46. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\t2m.lsp" "--> Failed to Load: t2m")
  47. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\TL.lsp" "--> Failed to Load: TL")
  48. (load "P:\\Glasgow\\BNI\\ACAD BLOCKS\\Lisp Routines\\TrialpitswithTable.LSP" "--> Failed to Load: TrialpitswithTable")
回复

使用道具 举报

6

主题

122

帖子

118

银币

初来乍到

Rank: 1

铜币
30
发表于 2022-7-6 08:21:13 | 显示全部楼层
更正-当我创建一个。mnl文件对于企业CUI,我必须注释掉加载时出现的原理和警报。
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-6 08:24:33 | 显示全部楼层
另一种选择是,如果自定义菜单中有你所有的Lisp程序,你仍然可以通过acaddoc加载一些。如果你可以使用记事本,你可以制作一个部分菜单。
 
  1. ***MENUGROUP=xxxxxSTDS
  2. ***POP1
  3. **CADLIB
  4. [->LISP1 A-C]
  5.             [ADD 2 LEVEL]^C^C(LOAD "add-to-levels")
  6.             [Add-pits-drain]^C^C(LOAD "Add-pits-drain")
  7.             [Allbylayer]^C^C(LOAD "Allbylayer")
  8.             [Apndtext]^C^C^p(LOAD "apndtext")
  9.             [Area-label]^C^C^p(LOAD "area-label")
  10.             [AREAOBJ]^C^C^p(LOAD "AREAOBJ")
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 08:28:13 | 显示全部楼层
据我所知,ALERT或PRINT/PRINC/PRIN1调用通过acaddoc加载的文件。lsp将获得无问题的荣誉。这些不会妨碍上述文件的自动加载以及内部定义的功能/命令。唯一的问题可能是一些警报框可能会延迟启动或打扰用户。但是,一个好的编程实践是,仅在问题而不是版权/信息注释的根级别使用这种通信方式(警报)。也就是说,程序员希望确保他/她的用户知道的事情。
 
请不要错过一个事实,即版权注释不得删除或注释掉。
回复

使用道具 举报

6

主题

122

帖子

118

银币

初来乍到

Rank: 1

铜币
30
发表于 2022-7-6 08:30:10 | 显示全部楼层
我已经更正了上述帖子。我去看了一下我是如何加载例程和脚本的,它是通过一个具有。具有例程加载调用的mnl文件。。。这不是acad。lsp或acaddoc。正如我第一次说的那样。
如果您对如何让mnl文件加载包含PRINC和警报的例程有任何建议,我们将不胜感激
顺便说一句,我没有从代码中删除任何内容,也没有声称作者没有编写代码,我只是想让它加载。
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-10 04:25 , Processed in 0.424825 second(s), 66 queries .

© 2020-2025 乐筑天下

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