Notification / Events
-
I received this question some time ago from Paul Richardson from CAD System Engineering: I have never been sure when to update objects programmatically. An example would be a user edits an entity that I'm tracking and I need to edit another entity in reaction to that change. Is there a standard used to cache the handle, and make the change. Doesn't seem editing of entities should be done in the event that is watching for the change. When/how does one do it? Doesn't seem to be any info on a standard for this. This is such an excellent question…
-
Thanks to Viru Aithal from the DevTech team in India team for this idea (he reminded me of this technique in a recent ADN support request he handled). A quick disclaimer: the technique shown in this entry could really confuse your users, if implemented with inadequate care. Please use it for good, not evil. I talked at some length in previous posts about MDI in AutoCAD, and how various commands lock documents when they need to work on them. When commands try to lock (or unlock) a document, an event gets fired. You can respond to this event in your…