AutoCAD二次开发(C#)完成后,如何实现CAD启动时自动加载dll(不必输入netload)?
1、复制编译后的dll路径,比如我的是【C:\SectionManager_CAD_1.1_0312_SL4\SectionManager_CAD_1.1_0312_SL4.dll】
2、在【C:\SectionManager_CAD_1.1_0312_SL4\】下新建一个记事本,在记事本中写入以下内容:
(command "netload" "C:\SectionManager_CAD_1.1_0312_SL4\SectionManager_CAD_1.1_0312_SL4.dll")
3、将该记事本的后缀名改为lsp,比如sl4.lsp

4、打开cad2010软件,打开加载应用程序界面

5、点击【启动组】-【内容】,选择并加载sl4.lsp

6、以后每次打开CAD2010,直接输入命令SL4(不必输入netload),即可启动程序。

///
https://www.cnblogs.com/smilepeter/p/4861464.html
其他:
https://blog.csdn.net/lvyiwuhen/article/details/81020023 https://blog.csdn.net/qq_29939347/article/details/84302436 https://blog.csdn.net/qq_39501726/article/details/82557288 https://blog.csdn.net/yeyonghui123/article/details/77962896 |