NetClass#

class pyedb.grpc.database.net.net_class.NetClass(pedb, core)#

Manages EDB functionalities for a primitives. It inherits EDB Object properties.

Examples

>>> from pyedb import Edb
>>> myedb = "path_to_your_edb_file.edb"
>>> edb = Edb(myedb, version="2026.1")
>>> edb.net_classes

Overview#

create

Create a new net class.

delete

Delete the net class.

add_net

Add a net to the net class.

contains_net

Determine if a net exists in the net class.

remove_net

Remove net.

description

Description of the net class.

id

The net class ID.

is_null

Check if the net class is a null net class.

is_power_ground

Check if the net class is a power/ground net class.

name

Net class name.

nets

Net list. Attribute is read-only.

Import detail#

from pyedb.grpc.database.net.net_class import NetClass

Property detail#

property NetClass.description: str#

Description of the net class.

Returns:
str

Description of the net class.

property NetClass.id: int#

The net class ID.

Returns:
int

ID of the net class.

property NetClass.is_null: bool#

Check if the net class is a null net class.

Returns:
bool

True if the net class is a null net class, False otherwise.

property NetClass.is_power_ground#

Check if the net class is a power/ground net class.

Returns:
bool

True if the net class is a power/ground net class, False otherwise.

property NetClass.name#

Net class name.

Returns:
str

Name of the net class.

property NetClass.nets#

Net list. Attribute is read-only.

Returns:
List[Net].

List of Net object.

Attribute detail#

NetClass.core#

Method detail#

classmethod NetClass.create(edb, name) NetClass#

Create a new net class.

NetClass.delete()#

Delete the net class.

NetClass.add_net(net)#

Add a net to the net class.

Returns:
bool
NetClass.contains_net(net) bool#

Determine if a net exists in the net class.

Parameters:
netstr or Net

The net to check. This can be a string representing the net name or a Net object.

Returns:
bool

True if the net exists in the net class, False otherwise.

NetClass.remove_net(net)#

Remove net.

Returns:
bool