Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Intent api get the refchain of a Component Occurrence object

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
740 Views, 1 Reply

Intent api get the refchain of a Component Occurrence object

I'm building a user interface, and I'd like to allow the user to click on the part they want to add a child to.  When they click on a part, it returns a component occurrence.  How can I get the refchain of this ComponentOccurrence object?

 

The childName is NOT the same as the displayName, so I cannot use the display name.

 

Thank you,

Brandon

1 REPLY 1
Message 2 of 2
AlexKorzun
in reply to: Anonymous

Hi

 

HostAPI has a method that returns a ref string from the Inventor object:

 

string refChain = Autodesk.Intent.IntentAPI.Instance.HostAPI.HostApplication.RefChainFromHostObject( occ)

 

You may wish to feed the result into RefChain class constructor for further analysis.

 

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report