pytha Attributes Functions - pytha-3d-cad/pytha-lua-api GitHub Wiki
Here we link to the functions equivalent to the "Attributes" menu in the PYTHA user interface. These functions mostly work on both parts and groups.
| PYTHA Function | Lua Api Function |
|---|---|
| Set Attributes | set_element_attributes. Works for any Attribute |
| Get Attributes | get_element_attribute. Works for any Attribute |
| Get Attribute List Values | get_attribute_list_values |
| Set Name | set_element_name |
| Set Layer | set_element_layer |
| Set Pen | set_element_pen |
| Set Linetype | set_element_linetype |
| Set Material | set_element_material |
| Set History | set_element_history |
| Get History | get_element_history |
| Get User Variable | get_user_variable |
| Set User Variable | set_user_variable |
| Create Reference Point | create_element_ref_point |
| Get Reference Point Coordinates | get_element_ref_point_coordinates |
| Get Bounding Box | get_element_bounding_box |
| Get Group Replace Properties | get_group_replace_properties |
| Set Group Replace Properties | set_group_replace_properties |