assign_net#

Q3d.assign_net(assignment, net_name=None, net_type='Signal')#

Assign a net to a list of objects.

Parameters:
assignmentlist, str

List of objects to assign the net to. It can be a single object.

net_namestr, 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.BoundaryObject

Source object.

References

>>> oModule.AssignSignalNet
>>> oModule.AssignGroundNet
>>> oModule.AssignFloatingNet

Examples

>>> from ansys.aedt.core import Q3d
>>> q3d = Q3d()
>>> box = q3d.modeler.create_box([30, 30, 30],[10, 10, 10],name="mybox")
>>> net_name = "my_net"
>>> net = q3d.assign_net(box,net_name)