明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1839|回复: 3

AutoLisp的自制菜单怎么在CAD启动时加载?

[复制链接]
发表于 2004-8-26 09:06:00 | 显示全部楼层 |阅读模式
用AutoLisp做了一个菜单,怎么在CAD启动时自动加载?


以后就不用执行AutoLisp程序。
发表于 2004-8-26 09:22:00 | 显示全部楼层
你在执行你的 LISP 时可以加载你的菜单吗?如果可以就将你的命令加入ACAD2000.lsp中就记好拉。(c:xxx)
发表于 2004-8-26 09:38:00 | 显示全部楼层
将其放在你的CAD搜索路径下,再用MENULOAD加载菜单即可。
发表于 2004-8-26 09:41:00 | 显示全部楼层
For example, I have an menu named EXTRAS.mns. I write a LISP routine that contains the following codes, then put this routine in "Start Suite".
  1. ...
  2. (if (not (menugroup "EXTRAS"))
  3.    (progn
  4.        (command ".menuload" "EXTRAS")
  5.        (menucmd "P15=+EXTRAS.ALIN_ROUTINES")
  6.        (alert "EXTRAS menu has been inserted into the end of the menu bar")
  7.    )
  8. )
  9. ...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-9-30 18:37 , Processed in 0.174821 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表