Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

get point position relative to Origin

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Brian_Sullivan
569 Views, 2 Replies

get point position relative to Origin

 

To get position of a point relative to the plane it was drawn. I can use

 

    rootComp.sketches.sketchCurves.sketchLines[index].startSketchPoint.geometry.[x|x|z]

 

How do I get the numbers relative to the origin.
Like in the GUI, when you click on the point and it shows in the bottom right .

 

Thanks

2 REPLIES 2
Message 2 of 3
JesusFreke
in reply to: Brian_Sullivan

Most (all?) Sketch related objects have a worldGeometry property, which gets an object in the world coordinates. In the case of a SketchPoint, it will return a Point3D object relative to the origin.

 

 rootComp.sketches.sketchCurves.sketchLines[index].startSketchPoint.worldGeometry.[x|x|z]
Message 3 of 3
Brian_Sullivan
in reply to: JesusFreke

That works.


Spent hours chasing rabbits yesterday, trying to find that.

 

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report