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

VPFREEZE layer from xref

0 REPLIES 0
Reply
Message 1 of 1
matus.brlit
329 Views, 0 Replies

VPFREEZE layer from xref

I have a command that freezes a layer based on selected entity. If you are in a viewport, instead of freezing, the layer is  VP freezed.

I have problem with layers from external reference. They appear VP frozen, but not in the Layer manager dialog and after saving and opening the drawing, they don't stay frozen.

 

If Not ed.CurrentViewportObjectId.IsNull Then

   Dim oViewport As Viewport = trans.GetObject(ed.CurrentViewportObjectId, OpenMode.ForWrite, False)

   oViewport.FreezeLayersInViewport(New ObjectIdCollection(New ObjectId() {layId}).GetEnumerator)

 

0 REPLIES 0

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