toggle_net#

Q3d.toggle_net(net_name, net_type='Signal')#

Toggle net type.

Parameters:
net_namestr or ansys.aedt.core.modules.boundary.common.BoundaryObject, optional

Name of the net. The default is `None, in which case the default name is used.

net_typestr, bool

Type of net to create. Options are "Signal", "Ground" and "Floating". The default is "Signal".

Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObject

Net object.

References

>>> oModule.ToggleNet

Examples

>>> from ansys.aedt.core import Q3d
>>> q3d = Q3d()
>>> box = q3d.modeler.create_box([30, 30, 30], [10, 10, 10], name="mybox")
>>> aedtapp.auto_identify_nets()
>>> net = aedtapp.nets[0]
>>> new_net = aedtapp.toggle_net(net, "Floating")