Skip to content

Commit 66c72cf

Browse files
committed
id replacement with comp_id
1 parent e1b5f4d commit 66c72cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ansys/aedt/core/modeler/circuits/primitives_circuit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,9 @@ def create_touchstone_component(
10311031
arg1 = ["NAME:ComponentProps", "Name:=", model_name]
10321032
arg2 = ["NAME:Attributes", "Page:=", 1, "X:=", xpos, "Y:=", ypos, "Angle:=", angle, "Flip:=", False]
10331033
comp_name = self.oeditor.CreateComponent(arg1, arg2)
1034-
id = int(comp_name.split(";")[1])
1035-
self.add_id_to_component(id, comp_name)
1036-
return self.components[id]
1034+
comp_id = int(comp_name.split(";")[1])
1035+
self.add_id_to_component(comp_id, comp_name)
1036+
return self.components[comp_id]
10371037

10381038
@pyaedt_function_handler()
10391039
def create_nexxim_state_space_component(

0 commit comments

Comments
 (0)