Message 1 of 5
how to run lisp fuction with arguments in ARX?
Not applicable
11-22-2012
06:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
as we know, there is a lisp command "flatten" in the CAD express tool, and I want to execute "flatten" in my ARX application, I searched the internet and found the following code:
resbuf *rb_in = acutBuildList(RTSTR,"c:flatten",RTNONE);
resbuf *rb_out = NULL;
int rc = acedInvoke(rb_in,&rb_out);
acutRelRb(rb_in);
acutRelRb(rb_out);
this works, but i can not add arguments like this,
resbuf *rb_in = acutBuildList(RTSTR,_T("c:flatten"),RTPICKS,ssName,RTNONE);
the comand line returns "too many arguments".

