Joints, where are you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've expanded on the sample program (provided by Fusion 360) that traverses the model assembly so that it not only lists the Occurrences but also lists the various Bodies and Joints for each Occurrence. In addition, I made it so that it also lists those items for the Root Component. It works fairly well, but I've noticed something odd. When I display the hierarchical list that I've generated with a Message Box most all of the items line up quite nicely with what I see in the browser. Except for one item, the Joint. I have a Revolute Joint named "Rev Joint under root component" that appears within the Joint section of the Root in the Browser, but in my created hierarchical list it shows up as being under my Component6.
For each of the various Occurrences (which is what most of the objects that we refer to as Components actually are) I pick up the JointList thusly...
Ptr<JointList> JointsList = ThisOccurrence->joints();
and go through the list.
For the RootComponent, which is NOT an Occurrence object but has much of the same structure, I pick up the JointList similarly, but referencing the RootComponent...
Ptr<JointList> RootComponentJointsList = RootComponent->joints();
And I process each such JointsList the same way.
I would expect that the JointsList that shows up directly beneath the Root Component in the Browser would be the same JointsList that I pick up in my Script and should therefore show up beneath the root component in the hierarchical list that I generate. But it doesn't. Instead, that Joint that seems to be under the Root Component is under my Component6.
Why is it different between what I see in the browser and what I find in the actual hierarchical structure of the RootComponent and its Occurrences?