create_subcircuit#

NexximComponents.create_subcircuit(location=None, angle=None, name=None, nested_subcircuit_id=None)[source]#

Add a new Circuit subcircuit to the design.

Parameters:
locationlist of float, optional

Position on the X axis and Y axis.

anglefloat, optional

Angle rotation in degrees. The default is None.

namestr, optional

Name of the design. The default is None, in which case a unique name is generated.

nested_subcircuit_idstr, optional

ID of the nested subcircuit. Example “U1”.

Returns:
ansys.aedt.core.modeler.cad.object_3dcircuit.CircuitComponent

Circuit Component Object when successful or False when failed.

Examples

>>> from ansys.aedt.core import Circuit
>>> cir = Circuit()