Is there event for change current (active) layer of document?
(it's not Database.ObjectModified - it's not raised).
I tried to do it with binding as:
public void Initialize()
var layerList = Application.UIBindings.Collections.Layers;
layerList.PropertyChanged += new PropertyChangedEventHandler(LayerList_PropertyChan
And -= in Terminate, but... Autocad 2012 chashed _sometimes_!!!
Impossible to understand when it happned...
So I reject this way.
Is there other way to handle this event?
Solved! Go to Solution.
Solved! by DiningPhilosopher. See the answer in context.
Have you tried handling the system variable changed event, watching for the CLAYER system variable?