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

Assigns a linetype to a single element or a table of elements

Similar to the Lines -> Assign linetype function in the PYTHA user interface.

pytha.set_element_linetype(element, pen) 
Parameter Type Description
element element_handle or {...} A single element handle or a table of element handles
linetype number Linetype number. Must be between 0 and 10

Setting the linetype to 0 will assign the currently active linetype. As groups do not have a linetype property, the function will assign the linetype to all parts descending from that group.

See also:

pytha, element handles, set_element_attributes, set_element_name, set_element_material, set_element_pen