几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】[求助]为什么acedretname总是返回rterror (http://www.dimcax.com/hust/showthread.php?t=6704)

yang686526 2009-04-16 02:46 PM

【转帖】[求助]为什么acedretname总是返回rterror
 
[求助]为什么acedretname总是返回rterror
[求助]为什么acedretname总是返回rterror
以下代码len为1,但acedretname总是返回rterror,为什么?
ret=acedsslength(myss1,&len);
if(ret!=rtnorm) return;
if (len==0) return;
ret=acedretname(myss1,rtpicks);
if (ret==rtnorm)
{
acutprintf("<p1 selection set>");
}
已解决。
原来不能用addcommand,而要用aceddefun,才能返回值给lisp。


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