ads_queueexpr

ads_queueexpr

Anonymous
Not applicable
1,335 Views
3 Replies
Message 1 of 4

ads_queueexpr

Anonymous
Not applicable
Hello!

Try to use ads_queueexpr in an arx/ATL project (AutoCAD 2004/2005/2006).

Code snippet:

acedSetOLELock(0)
ads_queueexpr(W2A(msg));
acedClearOLELock(0);

The lisp code is send to AutoCAD, but not immediatly executed. Calling any
other (not transparent) command in AutoCAD executies the lisp code. Does
anyone know, how to execute lisp code send via ads_queueexpr immediatly,
or there my fault is?

Thanks for help,
Tim
0 Likes
1,336 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Lisp expression sending with ads_queueexpr can not be executing immediatly. Try using acedCommand/acedCmd or undocumented function:
int acedEvaluateLisp(ACHAR const *, struct resbuf * &result);
0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi Tim

see this from ObjArx doc for R14



"Tim Fields" wrote in message
news:[email protected]...
Hello!

Try to use ads_queueexpr in an arx/ATL project (AutoCAD 2004/2005/2006).

Code snippet:

acedSetOLELock(0)
ads_queueexpr(W2A(msg));
acedClearOLELock(0);

The lisp code is send to AutoCAD, but not immediatly executed. Calling any
other (not transparent) command in AutoCAD executies the lisp code. Does
anyone know, how to execute lisp code send via ads_queueexpr immediatly,
or there my fault is?

Thanks for help,
Tim
0 Likes
Message 4 of 4

Anonymous
Not applicable
Thanks for your reply. It seems, that acedEvaluateLisp is not in AutoCAD
2004 available. And unfortunatly, I need a solution for AutoCAD 2004-2008.

Tim
0 Likes