create#

classmethod Rectangle.create(layout, layer, net, rep_type, param1, param2, param3, param4, corner_rad, rotation)#

Create a rectangle.

Parameters:
layoutLayout

Layout to create the rectangle in.

layerLayerLike

Layer the rectangle is to created on.

netNetLike or None

Net the rectangle is to have.

rep_typeRectangleRepresentationType

Type that defines the meaning of the given parameters.

param1ValueLike

X value of the lower-left point or center point.

param2ValueLike

Y value of the lower-left point or center point.

param3ValueLike

X value of the upper-right point or width.

param4ValueLike

Y value of the upper-right point or height.

corner_radValueLike

Corner radius.

rotationValueLike

Rotation.

Returns:
Rectangle

Rectangle created.