NetClass#

class ansys.edb.core.net.net_class.NetClass(msg)#

Represents a net class.

Methods

NetClass.add_net(net)

Add a net to the net class.

NetClass.contains_net(net)

Determine if a net exists in the net class.

NetClass.create(layout, name)

Create a net.

NetClass.delete()

Delete the layout object.

NetClass.find_by_name(layout, name)

Find a net class by name in a given layout.

NetClass.get_product_property(prod_id, attr_id)

Get the product property of the layout object for a given product ID and attribute ID.

NetClass.get_product_property_ids(prod_id)

Get a list of attribute IDs given a product ID for the layout object.

NetClass.remove_net(net)

Remove a net from the net class.

NetClass.set_product_property(prod_id, ...)

Set the product property of the layout object for a given product ID and attribute ID.

Attributes

NetClass.description

str : Description of the net class.

NetClass.id

int: Unique ID of the EDB object.

NetClass.is_null

bool: Flag indicating if the object exists in the database.

NetClass.is_power_ground

bool: Flag indicating in the net class belongs to the power/ground NetClass class.

NetClass.layout

Layout: Layout owning the object.

NetClass.layout_obj_type

NetClass.msg

EDBObjMessage: Protobuf message that represents the object's ID.

NetClass.name

str: Name of the net class.

NetClass.nets

list of Net: List of nets in the net class.

NetClass.obj_type

LayoutObjType: Layout object type.