Layout#
- class pyedb.dotnet.database.cell.layout.Layout(pedb, edb_object)#
Bases:
pyedb.dotnet.database.utilities.obj_base.ObjBaseManages EDB functionalities for a base object.
Overview#
Get an expanded polygon for the Nets collection. |
|
Convert a list of primitives into vias or pins. |
|
Find a layout object by Database ID. |
|
Find a net object by name |
|
Find a component object by name. Component name is the reference designator in layout. |
|
Find a primitive objects by layer name. |
|
Finds padstack instances matching the specified criteria. |
|
|
|
|
|
|
|
|
Get terminals belonging to active layout. |
|
|
|
|
|
Nets. |
|
List of primitives.Read-Only. |
|
Primitives. |
|
Bondwires. |
|
Get all padstack instances in a list. |
|
|
Import detail#
from pyedb.dotnet.database.cell.layout import Layout
Property detail#
- property Layout.cell#
Cell: Owning cell for this layout.Read-Only.
- property Layout.layer_collection#
LayerCollection: Layer collection of this layout.
- property Layout.zone_primitives#
listofPrimitive: List of all the primitives in zones.Read-Only.
- property Layout.fixed_zone_primitive#
Primitive: Fixed zones primitive.
- property Layout.terminals#
Get terminals belonging to active layout.
- Returns:
- Terminal dictionary
Dict[str,pyedb.dotnet.database.edb_data.terminals.Terminal]
- Terminal dictionary
- property Layout.cell_instances#
listofCellInstance: List of the cell instances in this layout.Read-Only.
- property Layout.layout_instance#
LayoutInstance: Layout instance of this layout.Read-Only.
- property Layout.nets#
Nets.
- Returns:
- property Layout.primitives#
List of primitives.Read-Only.
- Returns:
listofdotnet.database.dotnet.primitive.PrimitiveDotNetcastobjects.
- property Layout.groups#
- property Layout.pin_groups#
- property Layout.net_classes#
- property Layout.extended_nets#
- property Layout.differential_pairs#
- property Layout.padstack_instances#
Get all padstack instances in a list.
- property Layout.voltage_regulators#
Method detail#
- Layout.expanded_extent(nets, extent, expansion_factor, expansion_unitless, use_round_corner, num_increments)#
Get an expanded polygon for the Nets collection.
- Parameters:
- nets
list[Net] A list of nets.
- extent
ExtentType Geometry extent type for expansion.
- expansion_factor
float Expansion factor for the polygon union. No expansion occurs if the expansion_factor is less than or equal to 0.
- expansion_unitlessbool
When unitless, the distance by which the extent expands is the factor multiplied by the longer dimension (X or Y distance) of the expanded object/net.
- use_round_cornerbool
Whether to use round or sharp corners. For round corners, this returns a bounding box if its area is within 10% of the rounded expansion’s area.
- num_increments
int Number of iterations desired to reach the full expansion.
- nets
- Returns:
PolygonData
Notes
Method returns the expansion of the contour, so any voids within expanded objects are ignored.
- Layout.convert_primitives_to_vias(primitives, is_pins=False)#
Convert a list of primitives into vias or pins.
- Layout.find_object_by_id(value: int)#
Find a layout object by Database ID.
- Parameters:
- value
int ID of the object.
- value
- Layout.find_net_by_name(value: str)#
Find a net object by name
- Parameters:
- value
str Name of the net.
- value
- Returns:
- Layout.find_component_by_name(value: str)#
Find a component object by name. Component name is the reference designator in layout.
- Parameters:
- value
str Name of the component.
- Returns
- ——-
- value
- Layout.find_primitive(layer_name: str | list = None, name: str | list = None, net_name: str | list = None) list#
Find a primitive objects by layer name.
- Layout.find_padstack_instances(aedt_name: str | List[str] = None, component_name: str | List[str] = None, component_pin_name: str | List[str] = None, net_name: str | List[str] = None, instance_id: int | List[int] = None) List#
Finds padstack instances matching the specified criteria.
This method filters the available padstack instances based on specified attributes such as aedt_name, component_name, component_pin_name, net_name, or instance_id. Criteria can be passed as individual values or as a list of values. If no padstack instances match the criteria, an error is raised.
- Parameters:
- aedt_name
Union[str,List[str]],optional Name(s) of the AEDT padstack instance(s) to filter.
- component_name
Union[str,List[str]],optional Name(s) of the component(s) to filter padstack instances by.
- component_pin_name
Union[str,List[str]],optional Name(s) of the component pin(s) to filter padstack instances by.
- net_name
Union[str,List[str]],optional Name(s) of the net(s) to filter padstack instances by.
- instance_id
Union[int,List[int]],optional ID(s) of the padstack instance(s) to filter.
- aedt_name
- Returns:
ListA list of padstack instances matching the specified criteria.