create_rectangle#
- Q2d.create_rectangle(origin, sizes, name='', material='')#
Create a rectangle.
- Parameters:
- origin
list List of
[x, y]coordinates for the starting point of the rectangle.- sizes
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.- material
str,optional Name of the material. The default is
None, in which case the default material is used.
- origin
- Returns:
References
>>> oEditor.CreateRectangle