Message 1 of 3

Not applicable
06-19-2015
04:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there,
I'm trying to catch all the surface bodies in my part. But i can only catch the solid bodies.
I tried a simple version of the rule that i found here: http://inventortrenches.blogspot.be/2013/01/ilogic-solid-body-visibility.html
What do I need to change in order to catch the names of the Surface Bodies instead of the Solid Bodies?
My browser layout:
My Code:
Dim oCompDef as ComponentDefinition oCompDef = ThisDoc.Document.ComponentDefinition 'define the solidbody Dim oBody As SurfaceBody Dim i As Integer i = 1 For Each SurfaceBody In oCompDef.SurfaceBodies oBody = oCompDef.SurfaceBodies.Item(i) MsgBox(oBody.Name) i = i +1 Next
Solved! Go to Solution.