How to get the four appearances?

How to get the four appearances?

857292181
Participant Participant
169 Views
1 Reply
Message 1 of 2

How to get the four appearances?

857292181
Participant
Participant

This link shows the logic of the appearance display priority:

  1. Face appearance
  2. Feature appearance
  3. Body appearance
  4. Part appearance

https://help.autodesk.com/view/INVNTOR/2023/CHS/?guid=GUID-53D2D220-7053-4851-AAA4-2A2AEE489E1E 

What do I do if I want to get each of these four appearances separately?

0 Likes
170 Views
1 Reply
Reply (1)
Message 2 of 2

Andrii_Humeniuk
Advisor
Advisor

Hi @857292181 . Here's an example of iLogic code that gives you the ability to get 4 appearances from different objects:

Dim oDoc As PartDocument = ThisDoc.Document
Dim oPartApprc As Asset = oDoc.ActiveAppearance
Logger.Info("Part appearance: " & oPartApprc.DisplayName)
Dim oBody As SurfaceBody = oDoc.ComponentDefinition.SurfaceBodies(1)
Dim oBodyApprc As Asset = oBody.Appearance
Logger.Info("Body appearance: " & oBodyApprc.DisplayName)
Dim oFeat As PartFeature = oBody.CreatedByFeature
Dim oFeatApprc As Asset = oFeat.Appearance
Logger.Info("Feature appearance: " & oFeatApprc.DisplayName)
Dim oFace As Face = oFeat.Faces(1)
Dim oFaceApprc As Asset = oFace.Appearance
Logger.Info("Face appearance: " & oFaceApprc.DisplayName)

 

Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor

LinkedIn | My free Inventor Addin | My Repositories

Did you find this reply helpful ? If so please use the Accept as Solution/Like.

EESignature

0 Likes