ansys / pymotorcad

https://motorcad.docs.pyansys.com
MIT License
15 stars 1 forks source link

Set_Region makes Motor-CAD UI hangs #278

Open ravi-ansys opened 5 months ago

ravi-ansys commented 5 months ago

🔍 Before submitting the issue

🐞 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
jgsdavies commented 5 months ago

Hi @ravi-ansys. I think this has been fixed by @matthewAnsys. Can you please test and close this ticket if resolved

ravi-ansys commented 5 months ago

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.