create_resistor#

NexximComponents.create_resistor(name: str = None, value: float = 50.0, location: list[float] = None, angle: float = 0.0, use_instance_id_netlist: bool = False, page: int = 1) CircuitComponent#

Create a resistor.

Parameters:
namestr, optional

Name of the resistor. The default is None.

valuefloat, optional

Resistance in ohms. The default is 50.

locationlist of float, optional

Position on the X axis and Y axis.

anglefloat, optional

Angle rotation in degrees. The default is 0.

use_instance_id_netlistbool, optional

Whether to use the instance ID in the net list. The default is False.

page: int, optional

Schematic page number. The default value is 1.

Returns:
ansys.aedt.core.modeler.circuits.object_3d_circuit.CircuitComponent

Circuit Component Object.

References

>>> oEditor.CreateComponent