create_capacitor#
- MaxwellCircuitComponents.create_capacitor(compname=None, value=50, location=[], angle=0, use_instance_id_netlist=False)[source]#
Create a capacitor.
- Parameters:
- compname
str
,optional
Name of the capacitor. The default is
None
.- value
float
,optional
Value for the capacitor. The default is
50
.- location
list
of
float
,optional
Position on the X axis and Y axis.
- 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
.
- compname
- Returns:
pyaedt.modeler.cad.object3dcircuit.CircuitComponent
Circuit Component Object.
References
>>> oEditor.CreateComponent