Using view.FreezeLayer doesnt seem to do anything

vgonzalezmorales
Participant
Participant

Using view.FreezeLayer doesnt seem to do anything

vgonzalezmorales
Participant
Participant

Hi I want to freeze a specific layer in a particular view, so I am using the following code snippet to try to accomplish that but it doesnt seem to be working. Do I need to do some sort of screen refresh of anything? I trying calling view.Update() but didnt do anything.

Any help would be appreciated. 

 

var doc = Ac.GetActiveDocument();
var level = Ac.CreateLevel(levelName);
var view = doc.GraphicsManager.GetCurrentAcGsView(_viewportNumber);
view.FreezeLayer(level.UnmanagedObject);

0 Likes
Reply
89 Views
0 Replies
Replies (0)