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.
Solved! Go to Solution.
HostAPI has a method that returns a ref string from the Inventor object:
string refChain = Autodesk.Intent.IntentAPI.Instance.HostAPI.HostApp
You may wish to feed the result into RefChain class constructor for further analysis.
Start with some of our most frequented solutions to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!
Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.