create_rectangle#

Q2d.create_rectangle(position, dimension_list, name='', matname='')[source]#

Create a rectangle.

Parameters:
positionlist

List of [x, y] coordinates for the starting point of the rectangle.

dimension_listlist

List of [width, height] dimensions.

namestr, optional

Name of the rectangle. The default is None, in which case the default name is assigned.

matnamestr, optional

Name of the material. The default is None, in which case the default material is used.

Returns:
pyaedt.modeler.cad.object3d.Object3d

3D object.

References

>>> oEditor.CreateRectangle