Skip to Content

Position

Quick Facts

PropertyValue
ClassCENPyOlpPosition
Modulecenpylib.CENPyOlpPosition
Packagecenpylib
ReleaseR2025.2.4
Methods33

Quick Start

# Boilerplate Example position = ... # obtained from the runtime context result = position.GetCoordinates()

Query Methods

MethodReturnsSummary
GetCoordinateslistGet all toolpath element coordinates.
GetViaPointCoordinateslistGet all via point coordinates.
GetOrientationlistGet all orientations.
GetRefTpElementCENPyOlpTpElementGet the reference toolpath element.
GetPositionRelationintGet the relation of the position.
GetMatrixCENPyOlpMatrixGet the represented toolpath element matrix.
GetViaPointMatrixCENPyOlpMatrixGet the represented via point matrix.
GetViaPointNamestrGet the name of the Via point if it exists, nullptr otherwise.
GetJointValueslistGet all toolpath element joint values.
GetExternalJointValueslistGet all toolpath element external joint values.

Mutation Methods

MethodReturnsSummary
SetCoordinates—Set all toolpath element coordinates.
SetCoordinates—Set all toolpath element coordinates using the list.
SetViaPointCoordinates—Set all via point coordinates.
SetViaPointCoordinates—Set all via point coordinates using the list.
SetOrientation—Set all orientations.
SetOrientation—Set all orientations using the list.
SetRefTpElement—Set the reference toolpath element.
SetPositionRelation—Set the new relation for the position.
SetPositionRelation—Set the position relation to Base frame and the base frame index.
SetJointValues—Set all toolpath element joint values.
SetExternalJointValues—Set all toolpath element external joint values.

Utilities

MethodReturnsSummary
XfloatGet X coordinate.
YfloatGet Y coordinate.
ZfloatGet Z coordinate.
RXfloatGet Rx orientation.
RYfloatGet Ry orientation.
RZfloatGet Rz orientation.
TranslatePosition—Translates the toolpath element position locally in given direction.
TranslatePosition—Translates the toolpath element position locally in given direction relative to the base frame, specified by its index.
TranslateViaPointPosition—Translates the via point position locally in given direction.
TranslateViaPointPosition—Translates the via point position locally in given direction relative to the base frame, specified by its index.
RotatePosition—Rotates the position locally around given direction.
RotatePosition—Rotates the position locally around given direction relative to the base frame, specified by its index.

Version Notes

This class is documented as of release R2026.1.1.

Was this page helpful?