pytha.get_group_replace_properties - pytha-3d-cad/pytha-lua-api GitHub Wiki

Gets the replace properties for a group.

Similar to the propertiers in the Attributes -> Edit Group dialog in the PYTHA user interface.

pytha.get_group_replace_properties(element) 
Parameter Type Description
element element_handle A single element handle to a group

Return value

A table with the following key-value pairs:

Key Possible Values Description
origin_u low, mid or high Orientation of the replacement origin in u-direction: mid: (default) center, low: left, high: right
origin_v low, mid or high Orientation of the replacement origin in v-direction: mid: (default) center, low: front, high: back
origin_w low, mid or high Orientation of the replacement origin in u-direction: mid: (default) center, low: bottom, high: top
zoom_u boolean A boolean that specifies whether the group can be stretched in u-direction: false (default) or true
zoom_v boolean A boolean that specifies whether the group can be stretched in v-direction: false (default) or true
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.

See also:

pytha, element handles, set_group_replace_properties