create_rectangle#
- Q2d.create_rectangle(position, dimension_list, name='', matname='')[source]#
Create a rectangle.
- Parameters:
- position
list
List of
[x, y]
coordinates for the starting point of the rectangle.- dimension_list
list
List of
[width, height]
dimensions.- name
str
,optional
Name of the rectangle. The default is
None
, in which case the default name is assigned.- matname
str
,optional
Name of the material. The default is
None
, in which case the default material is used.
- position
- Returns:
pyaedt.modeler.cad.object3d.Object3d
3D object.
References
>>> oEditor.CreateRectangle