create_rectangle#

Q2d.create_rectangle(origin, sizes, name='', material='')[source]#

Create a rectangle.

Parameters:
originlist

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

sizeslist

List of [width, height] dimensions.

namestr, optional

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

materialstr, optional

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

Returns:
ansys.aedt.core.modeler.cad.object_3d.Object3d

3D object.

References

>>> oEditor.CreateRectangle