Position — Mutation Methods
Back to Position.
SetCoordinates
def SetCoordinates(x: float, y: float, z: float)Set all toolpath element coordinates.
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | X coordinate. |
y | float | Y coordinate. |
z | float | Z coordinate. |
SetCoordinates
def SetCoordinates(coordinates: list)Set all toolpath element coordinates using the list.
Parameters:
| Name | Type | Description |
|---|---|---|
coordinates | list | List with X, Y and Z coordinates. |
SetViaPointCoordinates
def SetViaPointCoordinates(x: float, y: float, z: float)Set all via point coordinates.
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | X coordinate. |
y | float | Y coordinate. |
z | float | Z coordinate. |
SetViaPointCoordinates
def SetViaPointCoordinates(coordinates: list)Set all via point coordinates using the list.
Parameters:
| Name | Type | Description |
|---|---|---|
coordinates | list | List with X, Y and Z coordinates. |
SetOrientation
def SetOrientation(rx: float, ry: float, rz: float)Set all orientations.
Parameters:
| Name | Type | Description |
|---|---|---|
rx | float | Rx orientation. |
ry | float | Ry orientation. |
rz | float | Rz orientation. |
SetOrientation
def SetOrientation(orientation: list)Set all orientations using the list.
Parameters:
| Name | Type | Description |
|---|---|---|
orientation | list | List with RX, RY and RZ orientations. |
SetRefTpElement
def SetRefTpElement(olpTpElement: CENPyOlpTpElement)Set the reference toolpath element.
Parameters:
| Name | Type | Description |
|---|---|---|
olpTpElement | CENPyOlpTpElement | Olp toolpath element. |
SetPositionRelation
def SetPositionRelation(newPosRelation: int)Set the new relation for the position.
Parameters:
| Name | Type | Description |
|---|---|---|
newPosRelation | int | Position relation to set. |
SetPositionRelation
def SetPositionRelation(newPosRelation: int, baseFrameIndex: int)Set the position relation to Base frame and the base frame index.
Parameters:
| Name | Type | Description |
|---|---|---|
newPosRelation | int | Position relation to set. |
baseFrameIndex | int | Base frame index to set. |
SetJointValues
def SetJointValues(values: list)Set all toolpath element joint values.
Parameters:
| Name | Type | Description |
|---|---|---|
values | list | Joint values list. |
SetExternalJointValues
def SetExternalJointValues(values: list, additional: bool=False)Set all toolpath element external joint values.
Parameters:
| Name | Type | Description |
|---|---|---|
values | list | Joint values list. |
additional | bool | if True, don’t clear existing _modifiedTeachFlags trans and rot values. (default: False) |
Was this page helpful?