Yagiz Guzelcan
Subscriber

This is the local location of the the element you are interested in. You do not need to know the distance between the origin and the CG of the part.