:class:`NetClass` ================= .. py:class:: pyedb.grpc.database.net.net_class.NetClass(pedb, net_class) Bases: :py:obj:`ansys.edb.core.net.net_class.NetClass` Manages EDB functionalities for a primitives. It inherits EDB Object properties. .. rubric:: Examples >>> from pyedb import Edb >>> edb = Edb(myedb, edbversion="2025.1") >>> edb.net_classes .. !! processed by numpydoc !! .. py:currentmodule:: NetClass Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~add_net` - Add a net to the net class. * - :py:attr:`~contains_net` - Determine if a net exists in the net class. * - :py:attr:`~remove_net` - Remove net. .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~nets` - Net list. Import detail ------------- .. code-block:: python from pyedb.grpc.database.net.net_class import NetClass Property detail --------------- .. py:property:: nets Net list. :Returns: :obj:`List`\[:class:`Net `]. List of Net object. .. !! processed by numpydoc !! Method detail ------------- .. py:method:: add_net(net) Add a net to the net class. :Returns: :ref:`bool ` .. .. !! processed by numpydoc !! .. py:method:: contains_net(net) -> bool Determine if a net exists in the net class. :Parameters: **net** : :class:`python:str` or :obj:`Net` The net to check. This can be a string representing the net name or a `Net` object. :Returns: :ref:`bool ` True if the net exists in the net class, False otherwise. .. !! processed by numpydoc !! .. py:method:: remove_net(net) Remove net. :Returns: :ref:`bool ` .. .. !! processed by numpydoc !!