.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detecting New and Delete Layers

1 REPLY 1
Reply
Message 1 of 2
rhinton
187 Views, 1 Reply

Detecting New and Delete Layers

Does anyone have procedure for detecting when a new layer is created and when a layer is deleted?
1 REPLY 1
Message 2 of 2
cadMeUp
in reply to: rhinton

You can monitor the 'ObjectAppended' and 'ObjectErased' events of a Database. In your event handler check to see if the passed in object is of type LayerTableRecord, then you know if the object being added or erased is a Layer and you can take some kind of action. In the ObjectARX dist, look under ..\samples\dotNet\EventsWatcher for some samples of monitoring Database events.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost