ansys / ansys/pyedb-core

Ansys.Edb.Core.DataBase.add_variable method doe not take parameter variable

Open
#693 0 comments 0 reactions 4 assignees Claimed by @amruta3991 View on GitHub
bug
Dominant language
Python
Stars
7
Forks
4
PR merge metrics
No merged PRs in 30d

Description

### 🔍 Before submitting the issue

- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment

### 🐞 Description of the bug

When setting a project variable setting this one to parameter does not create the varaible

### 📝 Steps to reproduce

Use pyedb system test. NEbale grpc use-grpc -> force as True in conftest.py

file test_edb_modeler.py -> test_duplicate
``` python

edbapp = edb_examples.create_empty_edb()
edbapp["$H"] = "0.65mil"
assert edbapp["$H"] == 1.651e-5

```
you will see with debugging and step into:
self.active_db.add_variable(variable_name, variable_value, is_param=is_parameter)
if is_param=True
get_all_variable_names() returns an empty list
while set to False
Image

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

NA

### 🐍 Which Python version are you using?

3.9

### 📦 Installed packages

```shell
NA
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.