Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In this post is mentioned that you can get the position of an occurrence from its transform as Matrix3D:
https://forums.autodesk.com/t5/fusion-360-api-and-scripts/component-s-origin-point/m-p/5805863#M725
In the docs of Matrix3D I don't understand which methods give the position. Is it getAsCoordinateSystem() ? But how to use it? In the end I want the position values of the pivot from a body in a occurrence x,y,z.
# Get the root component of the active design.
rootComp = design.rootComponent
# Get the first sub component
occs = rootComp.occurrences
mat = occs.item(0).transform
subComp1 = occs.item(0).component
# Get the first body in sub component 1
baseBody = subComp1.bRepBodies.item(0)
...
baseBodyPosition = ...
Solved! Go to Solution.