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

Punches a set of parts with a given template.

Similar to the Part tools I -> Boolean -> Template function in the PYTHA user interface.

pytha.boole_part_template(base_elements, template_elements, in_or_out) 
Parameter Type Description
base_elements {element_handle_1, ...} A table of element handles of all the parts to be punched
template_elements {element_handle_1, ...} A table of element handles of all the template face parts
in_or_out string "inside" or "outside"

in_or_out defines whether the areas inside or outside of the template_elements will remain. The element handles of base_elements remain valid.

See also:

pytha, Part Tools Functions, Element Handles, boole_part_union, boole_part_difference