create#
- classmethod Rectangle.create(layout, layer, net, rep_type, param1, param2, param3, param4, corner_rad, rotation)#
Create a rectangle.
- Parameters:
- layout
Layout
Layout to create the rectangle in.
- layer
str
orLayer
Layer the rectangle is to created on.
- net
str
orNet
orNone
Net the rectangle is to have.
- rep_type
RectangleRepresentationType
Type that defines the meaning of the given parameters.
- param1
Value
X value of the lower-left point or center point.
- param2
Value
Y value of the lower-left point or center point.
- param3
Value
X value of the upper-right point or width.
- param4
Value
Y value of the upper-right point or height.
- corner_rad
Value
Corner radius.
- rotation
Value
Rotation.
- layout
- Returns:
Rectangle
Rectangle created.