I want to get the absolute location (X,Y,Z values) of a location of type ITxRoboticLocationOperation. I can't figure out how to get these because there is no attribute like "absoluteLocation" as it is for example with TxRobot.
Hope someone can help,
Go to Solution.
You need to cast the location to an ITxLocatableObject interface.
TxVector GetLocationPosition(ITxRoboticLocationOperation loc)
TxVector xyz= null;
ITxLocatableObject locatableObj = loc as ITxLocatableObject;
if (locatableObj != null)
TxVector position = locatableObj.AbsoluteLocation.Translation;
Thanks, it works!
Watch Replays of Previous Topics