ansys / ansys/pyedb-core

PolygonData does not accept variable as parameter

Open
#691 0 comments 0 reactions 4 assignees Claimed by @chenchienjacklin 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

I am able to create parametrized Rectangle for instance with formulas it works well. But when I want to create parametrized path with assigning parameters for center line e.g. polygon data I got an error saying cannot convert string as Value.
The string I passed is the variable name I defined before and made sure it is parameter, cell.add_variable(name, value, is_param=True). Same code wroks for Rectanlgle for instance.

### 📝 Steps to reproduce

NA

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

NA

### 🐍 Which Python version are you using?

3.12

### 📦 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.