Skip to content

pytha.create_polyline

daniel-flassig edited this page May 7, 2020 · 18 revisions

Creates a block (mathematically a cuboid) in PYTHA as new part.

Similar to the Faces -> Polygon function in the PYTHA user interface.

Note: If the polyline contains arcs, use the create_polyline_ex function instead.

pytha.create_polyline(type, points [,origin [,options]]]) 
Parameter Type Description
type string "open" or "closed" indicates whether the polyline is closed
points {{u,v [,w]}, ...} Coordinates of the points
origin {x,y,z} Optional: offset for the whole polyline
options {...} Optional: a table that may contain the following options:
options.u_axis {x,y,z} Local coordinate u-axis for the orientation of the plane
options.v_axis {x,y,z} Local coordinate v-axis for the orientation of the plane
options.w_axis {x,y,z} Local coordinate w-axis for the orientation of the plane-normal

Return value

Type Description
element_handle An element handle of the newly created part

See also:

pytha, element handles, Axes and directions, create_polyline_ex, create_polygon

Clone this wiki locally