
Not applicable
06-05-2017
05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm accessing a number of joints, but one is missing from the component's joint list. Perhaps someone will see what I'm doing wrong. Thank you
Using the Python Fusion 360 API, I've managed to find the joint list for the component in my assembly, and can enumerate the joint names, but one joint is missing, Rev6.
(Pdb) root = design.rootComponent (Pdb) comp1 = root.occurrences.itemByName('_0006_SA02_Default:1').childOccurrences.itemByName('0006_001_MC01-5_Default:1').component
(Pdb) comp1.name
0006_001_MC01-5_Default (Pdb) [x.name for x in comp1.joints] ['Rev7', 'Rev10', 'Cyl15'] (Pdb)
Using ui.selectEntity(...), I can select Rev6, verify its name, verify that I have the same parent as with the previous code, and verify that the parent's joints list is missing Rev6.
(Pdb) j1 = ui.selectEntity('Select joint', 'Joints').entity (Pdb) j1.name Rev6 (Pdb) j1.parentComponent.name 0006_001_MC01-5_Default (Pdb) [x.name for x in j1.parentComponent.joints] ['Rev7', 'Rev10', 'Cyl15']
Selecting a different joint associated with the parent shows the same result.
(Pdb) j1 = ui.selectEntity('Select joint', 'Joints').entity (Pdb) j1.name Rev7
(Pdb) j1.parentComponent.name
0006_001_MC01-5_Default (Pdb) [x.name for x in j1.parentComponent.joints] ['Rev7', 'Rev10', 'Cyl15']
Solved! Go to Solution.