create_rectangle_in_pad#
- EDBPadstackInstance.create_rectangle_in_pad(layer_name, return_points=False, partition_max_order=16)[source]#
Create a rectangle inscribed inside a padstack instance pad.
The rectangle is fully inscribed in the pad and has the maximum area. It is necessary to specify the layer on which the rectangle will be created.
- Parameters:
- layer_name
str
Name of the layer on which to create the polygon.
- return_pointsbool,
optional
If True does not create the rectangle and just returns a list containing the rectangle vertices. Default is False.
- partition_max_order
float
,optional
Order of the lattice partition used to find the quasi-lattice polygon that approximates
polygon
. Default is16
.
- layer_name
- Returns:
- bool,
List
,pyedb.dotnet.edb_core.edb_data.primitives.EDBPrimitives
Polygon when successful,
False
when failed, list of list if return_points=True.
- bool,
Examples
>>> from pyedb import Edb >>> edbapp = Edb("myaedbfolder", edbversion="2021.2") >>> edb_layout = edbapp.modeler >>> list_of_padstack_instances = list(edbapp.padstacks.instances.values()) >>> padstack_inst = list_of_padstack_instances[0] >>> padstack_inst.create_rectangle_in_pad("TOP")