create_rectangle

Modeler3D.create_rectangle(csPlane, position, dimension_list, name=None, matname=None, is_covered=True)

Create a rectangle.

Parameters
csPlanestr or int

Coordinate system plane for orienting the rectangle. pyaedt.constants.PLANE Enumerator can be used as input.

positionlist or Position

List of [x, y, z] coordinates for the center point of the rectangle or the positionApplicationName.modeler.Position(x,y,z) object.

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 assigned.

is_coveredbool, optional

Whether the rectangle is covered. The default is True.

Returns
pyaedt.modeler.Object3d.Object3d

3D object.

References

>>> oEditor.CreateRectangle