Bug located in pymechanical
- Dominant language
- Python
- Stars
- 83
- Forks
- 37
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 26
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
### OS
windows 11
### 📝 Steps to reproduce
By running the following code, it will creates two boxes, two named selections, and two rigid body properties for LS-DYNA analysis. The parameters for each 'Rigid body property' was expected to be automatically updated. But it was not until I manully assign the other named selection then switch back.
[bug_report_01.py](https://github.com/user-attachments/files/28064450/bug_report_01.py)
```
python bug_report_01.py
```
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
Ansys Mechanical 2025R1 version
### 🐍 Which Python version are you using?
3.12
### 📦 Installed packages
```shell
ansys-api-mapdl 0.6.0
ansys-api-mechanical 0.1.4
ansys-api-platform-instancemanagement 1.1.3
ansys-dpf-core 0.16.0
ansys-mapdl-core 0.73.0
ansys-mapdl-reader 0.55.2
ansys-math-core 0.2.5
ansys-mechanical-core 0.12.7
ansys-mechanical-stubs 0.1.10
ansys-platform-instancemanagement 1.1.2
ansys-pythonnet 3.1.0rc6
ansys-tools-common 0.5.0
```
Contributor guide
Research direction
Start by running the attached bug_report_01.py script with the reported Python, pymechanical, and Ansys Mechanical versions. Check how the two named selections and rigid body properties are created, then verify that each property's parameters update automatically without manually switching selections; the issue is done when the reproduced behavior is corrected and confirmed against this script.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100