diff --git a/pyaedt/modeler/circuits/PrimitivesMaxwellCircuit.py b/pyaedt/modeler/circuits/PrimitivesMaxwellCircuit.py index 155d5bc985d..637c97f2299 100644 --- a/pyaedt/modeler/circuits/PrimitivesMaxwellCircuit.py +++ b/pyaedt/modeler/circuits/PrimitivesMaxwellCircuit.py @@ -95,7 +95,7 @@ def create_resistor(self, compname=None, value=50, location=None, angle=0, use_i ) id.set_property("R", value) - + id.set_property("Name", compname) return id @pyaedt_function_handler() @@ -138,6 +138,7 @@ def create_inductor(self, compname=None, value=50, location=None, angle=0, use_i ) id.set_property("L", value) + id.set_property("Name", compname) return id @pyaedt_function_handler() @@ -177,6 +178,7 @@ def create_capacitor(self, compname=None, value=50, location=[], angle=0, use_in ) id.set_property("C", value) + id.set_property("Name", compname) return id @pyaedt_function_handler() @@ -215,6 +217,8 @@ def create_diode(self, compname=None, location=None, angle=0, use_instance_id_ne angle=angle, use_instance_id_netlist=use_instance_id_netlist, ) + + id.set_property("Name", compname) return id @pyaedt_function_handler() @@ -250,4 +254,5 @@ def create_winding(self, compname=None, location=[], angle=0, use_instance_id_ne angle=angle, use_instance_id_netlist=use_instance_id_netlist, ) + id.set_property("Name", compname) return id