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
SetCoordinatesSet all toolpath element coordinates.
SetCoordinatesSet all toolpath element coordinates using the list.
SetViaPointCoordinatesSet all via point coordinates.
SetViaPointCoordinatesSet all via point coordinates using the list.
SetOrientationSet all orientations.
SetOrientationSet all orientations using the list.
SetRefTpElementSet the reference toolpath element.
SetPositionRelationSet the new relation for the position.
SetPositionRelationSet the position relation to Base frame and the base frame index.
SetJointValuesSet all toolpath element joint values.
SetExternalJointValuesSet 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.
TranslatePositionTranslates the toolpath element position locally in given direction.
TranslatePositionTranslates the toolpath element position locally in given direction relative to the base frame, specified by its index.
TranslateViaPointPositionTranslates the via point position locally in given direction.
TranslateViaPointPositionTranslates the via point position locally in given direction relative to the base frame, specified by its index.
RotatePositionRotates the position locally around given direction.
RotatePositionRotates the position locally around given direction relative to the base frame, specified by its index.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?