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_namestr

Name of the layer on which to create the rectangle.

net_namestr

Name of the net. The default is "".

lower_left_pointlist

Lower left point when representation_type="LowerLeftUpperRight". The default is "".

upper_right_pointlist

Upper right point when representation_type="LowerLeftUpperRight". The default is "".

center_pointlist

Center point when representation_type="CenterWidthHeight". The default is "".

widthstr

Width of the rectangle when representation_type="CenterWidthHeight". The default is "".

heightstr

Height of the rectangle when representation_type="CenterWidthHeight". The default is "".

representation_typestr, optional

Type of the rectangle representation. The default is LowerLeftUpperRight. Options are "LowerLeftUpperRight" and "CenterWidthHeight".

corner_radiusstr, optional

Radius of the rectangle corner. The default is "0mm".

rotationstr, optional

Rotation of the rectangle. The default is "0deg".

Returns:
pyedb.dotnet.edb_core.edb_data.primitives_data.Primitive

Rectangle when successful, False when failed.