ansys/pymotorcad

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.