在acad.mns中加入如下语句:
***POP11
**叶片设计
ID_MnLeafDesign [叶片设计]
ID_LD3DView [给定参数]^C^C(if (load (findfile "DrumDesign.lsp")) ((DrumDesign)) (alert "Could not find or could not start Quick Tour."))
[--]
ID_LDGetPic [工程出图]^C^C(if (load (findfile "GETDRUMDESIGNRESULT.lsp")) ((GETDRUMDESIGNRESULT)) (alert "Could not find or could not start Quick Tour."))
加载后点机菜单,出现如下错误提示:
(if (load (findfile "GETDRUMDESIGNRESULT.lsp"))
((GETDRUMDESIGNRESULT)) (alert "Could not find or could not start Quick Tour."))
C:GetDrumDesignResult 已加载。 error: null function
(GETDRUMDESIGNRESULT)
可以看到lsp已经被正确加载。但为什么不能执行呢?
我的函数名就分别叫DrumDesign和GETDRUMDESIGNRESULT。已经加了C: