Set_Region makes Motor-CAD UI hangs
Opened this issue ยท 2 comments
๐ Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
๐ Description of the bug
A magnet region has been deleted and an duct has been place on it. When using set_region command Motor-CAD hangs.
๐ Steps to reproduce
with attached example, uncheck the last line
mc.set_region(this_duct).
Running it will hang the UI
e9_eMobility_IPM_User_delete_region.zip
๐ป Which operating system are you using?
Windows
๐ Which ANSYS version are you using?
No response
๐ Which Python version are you using?
3.10
๐ฆ Installed packages
pymotorcad
Hi @ravi-ansys. I think this has been fixed by @matthewAnsys. Can you please test and close this ticket if resolved
Hi @ravi-ansys. I think this has been fixed by @matthewAnsys. Can you please test and close this ticket if resolved
Hi @jgsdavies This issue happens when we don't provide/specify "name" of the region. I have tested this with 2024.0.20 with pymotorcad updated to latest version. The Motor-CAD UI still hangs. It would be good if some error message can popup reminding the user to specify name of the region.