Potential bug with DOE Tool not having datapins after instantiation
- Dominant language
- Python
- Stars
- 6
- Forks
- 1
- Avg merge
- 30m
- Merged PRs (30d)
- 2
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'm trying to create an example trade study script that adds and configures the DOE Tool into the 'BasicExample.pxcz' (process workflow that has single Quadratic component) in the repo's examples directory (https://github.com/ansys/pymodelcenter/blob/main/examples/BasicExample.pxcz).
After the DOE Tool is programmatically created, the existing Quadratic component needs to be moved under it (not programmatically possible since DOE component isn't an assembly, bug reported in issue #268 (https://github.com/ansys/pymodelcenter/issues/268)).
The bug details related to the issue title is that eventually the DOE tool will need to be configured by setting its datapins (similar to the Opt Tool configuration), except the DOE Tool component has no datapins. It appears that the only way to get datapins to populate is in the GUI by dragging the Quadratic component under the DOE Tool component. As detailed above, not able to programmatically able to move the Quadratic component, so not sure how to accomplish the DOE configuration.
### 📝 Steps to reproduce
Attached is a script to demonstrate the issue (TradeStudy_DOE_noDatapins.py).
To reproduce:
1. Copy script and BasicExample.pxcz to a folder on a machine with PyMC configured
2. Open command line in folder or 'cd' to folder
3. Run script using "python TradeStudy_DOE_noDatapins.py". When prompted, specify 'y' to save workflow, and hit 'Enter' button to close.
5. Open 'BasicExample.pxcz', will see 'DOE' component without any datapins
[TradeStudy_DOE_noDatapins.py](https://github.com/user-attachments/files/24648710/TradeStudy_DOE_noDatapins.py)
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
25R2
### 🐍 Which Python version are you using?
3.13
### 📦 Installed packages
```shell
ansys-api-modelcenter==0.3.4
ansys-api-platform-instancemanagement==1.1.3
ansys-engineeringworkflow-api==0.1.2
ansys-modelcenter-workflow==0.1.3
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.4.0
anyio==4.12.1
appdirs==1.4.4
certifi==2026.1.4
charset-normalizer==3.4.4
click==8.3.1
colorama==0.4.6
grpcio==1.76.0
idna==3.11
importlib_metadata==8.7.1
numpy==2.4.1
overrides==7.7.0
platformdirs==4.5.1
protobuf==6.33.4
pyansys-tools-variableinterop==0.1.2
requests==2.32.5
scooby==0.11.0
typing_extensions==4.15.0
urllib3==2.6.3
zipp==3.23.0
```
Contributor guide
Research direction
Start by running TradeStudy_DOE_noDatapins.py with BasicExample.pxcz as described, then inspect the created DOE component in the saved workflow. Compare its datapins with the GUI-created DOE setup and review issue #268 for the related component-movement limitation. Done means the programmatic workflow exposes the DOE datapins needed for configuration, or documents the supported setup if that is not possible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100