create_polygon#
- Modeler3DLayout.create_polygon(layername, point_list, units=None, name=None, net_name=None)[source]#
Create a polygon on a specified layer.
- Parameters:
- layername
str
Name of the layer.
- point_list
list
Origin of the coordinate system in a list of
[x, y]
coordinates.- units
str
,optional
Polygon units. Default is modeler units.
- name
str
,optional
Name of the rectangle. The default is
None
, in which case the default name is assigned.- net_name
str
,optional
Name of the net. The default is
None
, in which case the default name is assigned.
- layername
- Returns:
pyaedt.modeler.cad.object3dlayout.Polygons3DLayout
Object of the rectangle created when successful.
References
>>> oEditor.CreatePolygon