Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
3157 Views, 4 Replies

iLogic rule - Get point coordinates referring to custom origin

Hi all,

I'm getting point coordinates referred to the main origin with the following code:

punto = ThisApplication.ActiveDocument.ComponentDefinition.WorkPoints("Punto1")

x = punto.point.x

y = punto.point.y

z = punto.point.z

I can make the same with measure tool (see Position.jpg)

I would like to obtain (with code) the position of the point (x, y, z), but referring to a secondary origin (already set in the part), as I can do with measure tool (see Position other origin.jpg).

 

Many thanks to all for the cooperation!