Skip to Content

Position — Mutation Methods

Back to Position.

SetCoordinates

def SetCoordinates(x: float, y: float, z: float)

Set all toolpath element coordinates.

Parameters:

NameTypeDescription
xfloatX coordinate.
yfloatY coordinate.
zfloatZ coordinate.

SetCoordinates

def SetCoordinates(coordinates: list)

Set all toolpath element coordinates using the list.

Parameters:

NameTypeDescription
coordinateslistList with X, Y and Z coordinates.

SetViaPointCoordinates

def SetViaPointCoordinates(x: float, y: float, z: float)

Set all via point coordinates.

Parameters:

NameTypeDescription
xfloatX coordinate.
yfloatY coordinate.
zfloatZ coordinate.

SetViaPointCoordinates

def SetViaPointCoordinates(coordinates: list)

Set all via point coordinates using the list.

Parameters:

NameTypeDescription
coordinateslistList with X, Y and Z coordinates.

SetOrientation

def SetOrientation(rx: float, ry: float, rz: float)

Set all orientations.

Parameters:

NameTypeDescription
rxfloatRx orientation.
ryfloatRy orientation.
rzfloatRz orientation.

SetOrientation

def SetOrientation(orientation: list)

Set all orientations using the list.

Parameters:

NameTypeDescription
orientationlistList with RX, RY and RZ orientations.

SetRefTpElement

def SetRefTpElement(olpTpElement: CENPyOlpTpElement)

Set the reference toolpath element.

Parameters:

NameTypeDescription
olpTpElementCENPyOlpTpElementOlp toolpath element.

SetPositionRelation

def SetPositionRelation(newPosRelation: int)

Set the new relation for the position.

Parameters:

NameTypeDescription
newPosRelationintPosition relation to set.

SetPositionRelation

def SetPositionRelation(newPosRelation: int, baseFrameIndex: int)

Set the position relation to Base frame and the base frame index.

Parameters:

NameTypeDescription
newPosRelationintPosition relation to set.
baseFrameIndexintBase frame index to set.

SetJointValues

def SetJointValues(values: list)

Set all toolpath element joint values.

Parameters:

NameTypeDescription
valueslistJoint values list.

SetExternalJointValues

def SetExternalJointValues(values: list, additional: bool=False)

Set all toolpath element external joint values.

Parameters:

NameTypeDescription
valueslistJoint values list.
additionalboolif True, don’t clear existing _modifiedTeachFlags trans and rot values. (default: False)
Was this page helpful?