Hi all,
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_PropertyChanged);
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?
Thanks,
Pavel.
Solved! Go to Solution.
Solved by DiningPhilosopher. Go to Solution.
Have you tried handling the system variable changed event, watching for the CLAYER system variable?
Can't find what you're looking for? Ask the community or share your knowledge.