There was an error while loading. Please reload this page.
Creates a sweep along a line in PYTHA as new part. It uses an element handle to a face-part (e.g. a poly_face) as its cross section.
Similar to the Parts -> Sweep function in the PYTHA user interface.
Parts -> Sweep
pytha.create_sweep(base_part, cross_section [,options])
base_part
element_handle
cross_section
{...}
cross_section.type
string
"rectangle"
"circle"
{element_handle, ...}
The base_part is not deleted. If base_part contains multiple faces, profiles over all faces will be created.
pytha, element handles, create_block, create_cylinder, create_sweep