我有一个带有commandmethod(“cmdtest”)的dll(mytest.dll)
我想使用lisp加载和运行。
以下代码有问题。
如果“mytest.dll”存在,请运行此代码,
但仍提示“mytest.dll未加载!”
如果“mytest.dll”不存在,请运行此代码,
提示“TextToGeom.dll未找到!”\nTextToGeom。dll未找到!“???重复提示
- (defun c:test ()
- (if (member "mytest.DLL" (mapcar 'strcase (arx)))
- (command "cmdtest")
- (if (findfile "mytest.dll")
- (progn
- (princ "\nmytest.dll not loaded!")
- (setvar "cmdecho" 0)
- (command "netload" (findfile "mytest.dll"))
- (princ "\nOk, ")
- (princ (findfile "mytest.dll"))
- (princ " loaded!")
- (command "cmdtest")
- )
- (princ "\nmytest.dll not find!")
- )
- )
- )
|