Hi, Lee!
Gathering your comments about reactors so far:
I've known AutoCAD to throw an exception when attempting to use entmod within a reactor callback function under certain circumstances, and so this could very well be the cause of your error.
Note that you cannot invoke a command call from within a reactor callback function, therefore a post-process evaluation using the sendcommand method is required.
I did the conclusion that they work OK only with ActiveX (as you mentioned above: use
vla-sendcommand instead of command, and avoid any entity-manipulation functions)
For what it's worth, below is an old example from my library which performs the same operation:
Thank you! As a reactor newbie I appreciate it, since its not easy to determine where and how the error occured while using some reactor.
You may also be interested in this utility as another example of performing operations triggered on object selection.
Yes, I clearly remember this thread
Always when I think about practicing with reactors - I visit it, either to re-analyse how you did construct the whole thing, or to use it as a template for something else.
It looks for me as the perfect example for constructing a reactor.
I knew that I could use
vla-sendcommand with CHPROP from there, but rather decided to write one from scratch, guided by your code.
Thanks, again!