get point position relative to Origin

get point position relative to Origin

Anonymous
Not applicable
842 Views
2 Replies
Message 1 of 3

get point position relative to Origin

Anonymous
Not applicable

 

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

0 Likes
Accepted solutions (1)
843 Views
2 Replies
Replies (2)
Message 2 of 3

JesusFreke
Advocate
Advocate
Accepted solution

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]
0 Likes
Message 3 of 3

Anonymous
Not applicable

That works.


Spent hours chasing rabbits yesterday, trying to find that.

 

Thanks

0 Likes