Skip to content
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/6742.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve Variable management in Circuit
6 changes: 5 additions & 1 deletion src/ansys/aedt/core/application/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -4056,8 +4056,12 @@ def get_evaluated_value(self, name, units=None):
if self.design_type in ["Circuit Design", "Twin Builder", "HFSS 3D Layout Design"]:
if name in self.get_oo_name(app, f"Instance:{self._odesign.GetName()}"):
var_obj = self.get_oo_object(app, f"Instance:{self._odesign.GetName()}/{name}")
elif name in self.get_oo_name(app, "Variables"):
var_obj = self.get_oo_object(app, f"Variables/{name}")
elif name in self.get_oo_object(app, "DefinitionParameters").GetPropNames():
val = self.get_oo_object(app, "DefinitionParameters").GetPropEvaluatedValue(name)
val = self.get_oo_object(app, "DefinitionParameters").GetPropSIValue(name)
elif self.design_type in ["Maxwell Circuit"]:
return None
else:
var_obj = self.get_oo_object(app, f"Variables/{name}")
if var_obj:
Expand Down
Loading
Loading