From d7f8e2f4416938bbb09d4ac5e42560f59742e28a Mon Sep 17 00:00:00 2001 From: Samuel Lopez Date: Mon, 23 Oct 2023 10:27:38 +0200 Subject: [PATCH] Add component name --- pyaedt/modeler/circuits/PrimitivesMaxwellCircuit.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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