xinxirong 发表于 2008-10-21 08:22:00

[求助]为什么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("&lt1 Selection set>");
}

xinxirong 发表于 2008-10-21 10:53:00

已解决。
原来不能用addCommand,而要用acedDefun,才能返回值给Lisp。
页: [1]
查看完整版本: [求助]为什么acedRetName总是返回RTERROR