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
Solved! Go to Solution.
Solved by AlexKorzun. Go to Solution.
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.