In my application I have occasion to insert some custom blocks w/attributes.
I want to prevent users from modifying these through any means other than the
interface I provide. At first it seemed obvious that I needed to attach an
object reactor to them and trap any mofifications. However I ran into the same
situation as was posted here some time ago, namely that I couldnt modify the
blocks during the reactor call because there is always an "eOpenforNotify".
After reading some more posts I realized that the object reactor needs only to
save the objectid of the block, then I would use an editor reactor to see if
this objectid has been modified and make my changes there.
However, it seems there must be a better way, since I want to prevent ANY
modification, I thought I would use the "Reactor::openedForModify" event and
simply do a return and skip the base class function.
This didnt work 😞 and Acad definately didnt like it when I tried to close the
object during this call!
So, my question is, how do I prevent any and all modifications to an entity?
Thanks,
Perry