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

Creates a rectangle in PYTHA as new edge-part.

Similar to the Edges -> Rectangle function in the PYTHA user interface.

pytha.create_rectangle_edges(length, width [,origin [,options]]]) 
Parameter Type Description
length number Length of the rectangle (in u direction)
width number Width of the rectangle (in v direction)
origin {x,y,z} Optional: lower left corner of the rectangle
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_rectangle, create_polyline, create_circle_edges