Position — Utilities
Back to Position.
X
def X() -> floatGet X coordinate.
Returns: float — X coordinate.
Y
def Y() -> floatGet Y coordinate.
Returns: float — Y coordinate.
Z
def Z() -> floatGet Z coordinate.
Returns: float — Z coordinate.
RX
def RX() -> floatGet Rx orientation.
Returns: float — Rx orientation.
RY
def RY() -> floatGet Ry orientation.
Returns: float — Ry orientation.
RZ
def RZ() -> floatGet Rz orientation.
Returns: float — Rz orientation.
TranslatePosition
def TranslatePosition(x: float, y: float, z: float, positionRelation: int)Translates the toolpath element position locally in given direction.
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | Direction in local x. |
y | float | Direction in local y. |
z | float | Direction in local z. |
positionRelation | int | Position relation the local translation should be done in. |
TranslatePosition
def TranslatePosition(x: float, y: float, z: float, positionRelation: int, baseFrameIndex: int)Translates the toolpath element position locally in given direction relative to the base frame, specified by its index.
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | Direction in local x. |
y | float | Direction in local y. |
z | float | Direction in local z. |
positionRelation | int | Position relation the local translation should be done in. |
baseFrameIndex | int | Base frame index to be used for translation. |
TranslateViaPointPosition
def TranslateViaPointPosition(x: float, y: float, z: float, positionRelation: int)Translates the via point position locally in given direction.
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | Direction in local x. |
y | float | Direction in local y. |
z | float | Direction in local z. |
positionRelation | int | Position relation the local translation should be done in. |
TranslateViaPointPosition
def TranslateViaPointPosition(x: float, y: float, z: float, positionRelation: int, baseFrameIndex: int)Translates the via point position locally in given direction relative to the base frame, specified by its index.
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | Direction in local x. |
y | float | Direction in local y. |
z | float | Direction in local z. |
positionRelation | int | Position relation the local translation should be done in. |
baseFrameIndex | int | Base frame index to be used for translation. |
RotatePosition
def RotatePosition(rX: float, rY: float, rZ: float, positionRelation: int)Rotates the position locally around given direction.
Parameters:
| Name | Type | Description |
|---|---|---|
rX | float | Rotation around local x. |
rY | float | Rotation around local y. |
rZ | float | Rotation around local z. |
positionRelation | int | Position relation the local rotation should be done in. |
RotatePosition
def RotatePosition(rX: float, rY: float, rZ: float, positionRelation: int, baseFrameIndex: int)Rotates the position locally around given direction relative to the base frame, specified by its index.
Parameters:
| Name | Type | Description |
|---|---|---|
rX | float | Rotation around local x. |
rY | float | Rotation around local y. |
rZ | float | Rotation around local z. |
positionRelation | int | Position relation the local rotation should be done in. |
baseFrameIndex | int | Base frame index to be used for rotation. |