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

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

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

pytha.set_element_pen(element, pen) 
Parameter Type Description
element element_handle or {...} A single element handle or a table of element handles
pen number Pen number. Must be between 0 and 128

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

See also:

pytha, element handles, set_element_attributes, set_element_name, set_element_material, set_element_linetype