NetClass#

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

Bases: ansys.edb.core.net.net_class.NetClass

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

Examples

>>> from pyedb import Edb
>>> edb = Edb(myedb, edbversion="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.

nets

Net list.

Import detail#

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

Property detail#

property NetClass.nets#

Net list.

Returns:
List[Net].

List of Net object.

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