Skip to content

Commit 0d1055f

Browse files
FIX: Prevent solution invalidation in create_fieldplot_volume (#5922)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent b2ae1d1 commit 0d1055f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

doc/changelog.d/5922.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prevent solution invalidation in `create_fieldplot_volume`

src/ansys/aedt/core/application/design.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4044,7 +4044,7 @@ def evaluate_expression(self, expression):
40444044
)
40454045
eval_value = self._variable_manager.variables[variable_name].value
40464046
# Extract the numeric value of the expression (in SI units!)
4047-
self._variable_manager.delete_variable(variable_name)
4047+
self.odesign.Undo()
40484048
return eval_value
40494049
except Exception:
40504050
self.logger.warning(f"Invalid string expression {expression}")

0 commit comments

Comments
 (0)