Message 1 of 5
SketchEntity Visibility Hide/Unhide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was not able to hide SketchEntities within a PartDocument.
There is no "Visibile" Property.
If i unterstood correctly the SketchEntity has a Layer property which has a Visibility property, as in: SketchEntity.Layer.Visible
but I was not able to assign any Layer since i didn't find a way to get access to Layers within a PartDocument.
DrawingDocument on the other hand has a StylesManager which has 100 different Layers to chose from. I have even tried to take the Layers from there and assign it to SketchEntity.Layer which gave an exception.
At the moment a workaround is used where the data from the SketchEntity is saved and the SketchEntity Deleted and Recreated when needed. But constrains will then be lost.
Any suggestions?