You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
daniel-flassig edited this page May 6, 2020
·
23 revisions
Creates a profile (mathematically a straight prism) 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.
pytha.create_sweep(base_part, height [,options])
Parameter
Type
Description
base_part
element_handle
The face (or faces) in the base part is used as the cross section of the profile
height
number
Height of the profile, perpendicular to the face orientation
options
{...}
Optional: a table that may contain the following options:
Return value
Type
Description
{element_handle, ...}
A table containing the element handles of the newly created parts (Often it is just one).
Additional information
The base_part is not deleted.
If base_part contains multiple faces, profiles over all faces will be created.