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

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 -> Profile function in the PYTHA user interface.

pytha.create_profile(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: reserved for future use.

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.

See also:

pytha, element handles, create_block, create_cylinder, create_sweep