pytha.set_element_attributes - pytha-3d-cad/pytha-lua-api GitHub Wiki
Assigns a table of attributes to a single element or a table of elements.
Similar to the Attributes -> Attribute Dialog function in the PYTHA user interface.
pytha.set_element_attributes(element, attributes)
| Parameter | Type | Description |
|---|---|---|
element |
element_handle or {...} |
A single element handle or a table of element handles |
attributes |
{...} |
Table of attributes with the key as the attribute ID and the value as the attribute value |
Remarks:
If the function raises the error -8004 a certain attribute cannot be assigned to the element type. Please check the PYTHA attributes dialog to get a list of the attributes for each element type.
See also:
pytha, Attribute ID, element handles, get_element_attribute, set_element_name, set_element_material, set_element_layer