在 AutoCAD 中如何自动加载 DLL

问题:

您创建或使用的应用程序存储在 DLL 文件中,但在自动加载的情况下,APPLOAD 函数不允许添加此类文件。如何自动加载此类文件?

解决方案:

https://knowledge.autodesk.com/zh-hans/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/CHS/How-to-autoload-DLLs-with-AutoCAD.html

 

(if (vl-file-directory-p "C:/Users/XHQ/Documents/Visual Studio 2019/Project/OCS.AutoCAD/OCS.AutoCAD/bin/Debug")
	(command "_netload" "C:/Users/XHQ/Documents/Visual Studio 2019/Project/OCS.AutoCAD/OCS.AutoCAD/bin/Debug/OCS.AutoCAD.dll"))

 

提示:

信任加载解决办法

 

posted @ 2021-01-08 10:35  KissingTheFire  阅读(565)  评论(0)    收藏  举报