pytha.set_group_replace_properties - pytha-3d-cad/pytha-lua-api GitHub Wiki
Sets the replace properties for groups.
Similar to the propertiers in the Attributes -> Edit Group dialog in the PYTHA user interface.
pytha.set_group_replace_properties(element, properties)
| Parameter | Type | Description |
|---|---|---|
element |
element_handle |
A single element handle to a group |
properties |
{...} |
A table that can contain the following keys: |
properties.origin_u |
low, mid or high |
Orientation of the replacement origin in u-direction: low: left, mid: center, high: right |
properties.origin_v |
low, mid or high |
Orientation of the replacement origin in v-direction: low: front, mid: center, high: back |
properties.origin_w |
low, mid or high |
Orientation of the replacement origin in u-direction: low: bottom, mid: center, high: top |
properties.zoom_u |
boolean |
A boolean that specifies whether the group can be stretched in u-direction: false (default) or true |
properties.zoom_v |
boolean |
A boolean that specifies whether the group can be stretched in v-direction: false (default) or true |
properties.zoom_w |
boolean |
A boolean that specifies whether the group can be stretched in w-direction: false (default) or true |
Remarks
When replacing groups in PYTHA with the automatic replacement function the original group will determine the orientation of the replacement part (e.g. whether to be centered or oriented at the front/back side) while the loaded replacement group carries the information in which directions it can be stretched to fit the size of the original part. For further information on this topic please refer to the PYTHA manuals.