Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everybody !
I would like to acces the visibility command that we have for the solid body in a view.
I have wrote a code to do it with iLogic but it's not working well. My code change the visibility in my part and not only in the model tree of my view.
Dim oDoc As DrawingDocument oDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = ThisDoc.Document.ActiveSheet Dim oView As DrawingView oView = oSheet.DrawingViews(1) Dim oRefDoc As Document oRefDoc = oView.ReferencedDocumentDescriptor.ReferencedDocument Dim oCompDef As PartComponentDefinition oCompDef = oRefDoc.ComponentDefinition Dim oSB1 As SurfaceBody oSB1 = oCompDef.SurfaceBodies(2) oSB1.Visible = True
Do someone know what I'm doing wrong ?
Thanks for anyhelp ! 🙂
Solved! Go to Solution.