Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to Change Visibility of body in a part file using ilogic

Anonymous

How to Change Visibility of body in a part file using ilogic

Anonymous
Not applicable

Hi,

I have a part file with 7 bodies. How do i make one body invisible using ilogic rule.

I need to make make the body "FEA house " and then export the file seperately.

 

Regards,Neil

0 Likes
Reply
Accepted solutions (1)
422 Views
1 Reply
Reply (1)

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

Hi, this is a method to access each body of the multibody part file. You access through the item.

 

Dim oDoc As PartDocument = ThisDoc.Document
Dim oCD As ComponentDefinition = oDoc.ComponentDefinition

Dim oSolid As SurfaceBody = oCD.SurfaceBodies.Item(3)

oSolid.Visible = False

  If you have your bodies correctly named in your tree inside the browser, you could also hide through the name. You should create a loop that searches between all surfacebodies and when it finds a solid with the same name as you choose, then hide this solid.
I hope this helps with your problem. Regards


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn