Message 1 of 10

Not applicable
09-07-2015
01:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please, help.
How can I get origin point (starting point) for different components in design?
If I use originConstructionPoint it returns '(0, 0, 0)', but in UI origins are not located in the same place.
This code in Python returns different names of components and the same coordinates (0, 0, 0) :
design = adsk.fusion.Design.cast(app.activeProduct) components = design.allComponents countComp=0 while countComp<components.count: component = components.item(countComp) p = component.originConstructionPoint.geometry ui.messageBox(str(component.name)+" "+str(p.x)+" "+str(p.y)+" "+str(p.z)) countComp+=1
Please, how can I get absolute value of coordinates of origins from UI?
Solved! Go to Solution.