Using view.FreezeLayer doesnt seem to do anything
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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);
Link copied