create_rectangle#
- Modeler.create_rectangle(layer_name, net_name='', lower_left_point='', upper_right_point='', center_point='', width='', height='', representation_type='LowerLeftUpperRight', corner_radius='0mm', rotation='0deg')[source]#
Create rectangle.
- Parameters:
- layer_name
str
Name of the layer on which to create the rectangle.
- net_name
str
Name of the net. The default is
""
.- lower_left_point
list
Lower left point when
representation_type="LowerLeftUpperRight"
. The default is""
.- upper_right_point
list
Upper right point when
representation_type="LowerLeftUpperRight"
. The default is""
.- center_point
list
Center point when
representation_type="CenterWidthHeight"
. The default is""
.- width
str
Width of the rectangle when
representation_type="CenterWidthHeight"
. The default is""
.- height
str
Height of the rectangle when
representation_type="CenterWidthHeight"
. The default is""
.- representation_type
str
,optional
Type of the rectangle representation. The default is
LowerLeftUpperRight
. Options are"LowerLeftUpperRight"
and"CenterWidthHeight"
.- corner_radius
str
,optional
Radius of the rectangle corner. The default is
"0mm"
.- rotation
str
,optional
Rotation of the rectangle. The default is
"0deg"
.
- layer_name
- Returns:
pyedb.dotnet.edb_core.edb_data.primitives_data.EDBPrimitives
Rectangle when successful,
False
when failed.