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="2025.1")
>>> edb.net_classes

Overview#

add_net

Add a net to the net class.

contains_net

Determine if a net exists in the net class.

remove_net

Remove net.

name

Net class name.

nets

Net list.

is_null

Check if the net class is a null net class.

Import detail#

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

Property detail#

property NetClass.name#

Net class name.

Returns:
str

Name of the net class.

property NetClass.nets#

Net list.

Returns:
List[Net].

List of Net object.

property NetClass.is_null#

Check if the net class is a null net class.

Returns:
bool

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

Attribute detail#

NetClass.core#

Method detail#

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