create_resistor#
- MaxwellCircuitComponents.create_resistor(name=None, value=50, location=None, angle=0, use_instance_id_netlist=False)#
Create a resistor.
- Parameters:
- name
str,optional Name of the resistor. The default is
None.- value
float,optional Value for the resistor in Ohm. The default is
50Ohm.- location
listoffloat,optional Position on the X axis and Y axis. The default is
None.- angle
float,optional Angle of rotation in degrees. The default is
0.- use_instance_id_netlistbool,
optional Whether to use the instance ID in the net list or not. The default is
False.
- name
- Returns:
ansys.aedt.core.modeler.circuits.object_3d_circuit.CircuitComponentCircuit Component Object.
References
>>> oEditor.CreateComponent
Examples
Create a resistor of 10 Ohm:
>>> from ansys.aedt.core import MaxwellCircuit >>> circ = MaxwellCircuit() >>> circ.modeler.schematic.create_resistor(value=10) >>> circ.desktop_class.close_desktop()