Skip to content

pytha.create_rectangle

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

Creates a rectangle in PYTHA as new face-part.

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

pytha.create_rectangle(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_edges, create_polygon, create_circle

Clone this wiki locally