RobotStudio event

Get RobTargetPosition with External Axis

I'm using this command to get my new RobTarget Position:

Dim robTgt_Jog As RobTarget
                robTgt_Jog = mech.GetPosition(CoordinateSystemType.WorkObject)
               


With this command I could not get the position with the external axis, Do you have an other idea to modify my position?