几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】如何在arx开发的程序中调用lisp开发的程序 (http://www.dimcax.com/hust/showthread.php?t=7352)

yang686526 2009-04-16 11:03 PM

【转帖】如何在arx开发的程序中调用lisp开发的程序
 
如何在arx开发的程序中调用lisp开发的程序
如何在arx开发的程序中调用lisp开发的程序
目前有个问题想向各位请教,我用arx开发了一个程序,其中有一个按钮我希望做成能够调用已开发的某个lisp程序,不知是否可以实现?(arx的该按钮代码如下:
void jyworddlgmain::onbuttonnumatuo()
{
// todo: add your control notification handler code here
begineditorcommand();
string tempstr;
tempstr ="c:\\smarch\\supt\\jrmnum.lsp"; …lisp程序路径。
ads_command(rtstr,"load",rtstr,tempstr.c_str(),0); …该lisp程序可以加载。
ads_command(rtstr," jrmnum ",0); …但该lisp程序不能执行。会出现“unknown command "jrmrum". press f1 for help.”的提示。lisp程序是这样定义的:
(defun c:jrmnum ( / …)
(setq ….) …lisp程序略

)
ads_command(rtstr,"load",rtstr,tempstr.c_str(),0); …该lisp程序可以加载。
该lisp 不能加载 !应该用 "appload"
可以在vlisp中调用arx定义的命令吗?
可用(command "所定義的明令")的形式調用。
[web]//www.xdcad.net/forum/showthread.php?s=&postid=279549#post279549[/web]
以下是引用xiaomi在


所有的时间均为北京时间。 现在的时间是 07:49 PM.