Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.keep_instance_open=True is not available #296

Open
2 tasks done
ShinsukeOkayasu opened this issue Apr 25, 2024 · 1 comment
Open
2 tasks done

.keep_instance_open=True is not available #296

ShinsukeOkayasu opened this issue Apr 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ShinsukeOkayasu
Copy link

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

the Motor-CAD instance is closed after calculation automatically, even if i add "mcApp = pymotorcad.MotorCAD(keep_instance_open=True)"
test_script_default_keep_open.zip

I attached sample mot and py.
I executed py by visual studio Code.

📝 Steps to reproduce

I tried and Motor-CAD script just do static thermal analysis to check the result after automatic calculation by python script.
I set pymotorcad as below.
mcApp = pymotorcad.MotorCAD(keep_instance_open=True)

but the Motor-CAD instance is closed after calculation.

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

Motor-CAD 24R1

🐍 Which Python version are you using?

3.10

📦 Installed packages

ansys-motorcad-core==0.4.3
certifi==2023.7.22
cffi==1.15.1
charset-normalizer==3.3.2
clr-loader==0.2.6
contourpy==1.1.0
cycler==0.11.0
EasyProcess==1.1
entrypoint2==1.1
fonttools==4.42.1
idna==3.4
importlib-metadata==6.8.0
kiwisolver==1.4.5
matplotlib==3.7.3
MouseInfo==0.1.3
mss==9.0.1
numpy==1.25.2
packaging==23.1
pandas==2.1.0
Pillow==10.0.0
plumbum==1.8.2
psutil==5.9.5
pyaedt==0.6.92
PyAutoGUI==0.9.54
pycparser==2.21
PyGetWindow==0.0.9
PyMsgBox==1.0.9
pyparsing==3.1.1
pyperclip==1.8.2
PyRect==0.2.0
pyscreenshot==3.1
PyScreeze==0.1.29
python-dateutil==2.8.2
pythonnet==3.0.2
pytweening==1.0.7
pytz==2023.3.post1
pywin32==306
requests==2.31.0
rpyc==5.3.1
scipy==1.11.3
six==1.16.0
tzdata==2023.3
urllib3==2.0.7
zipp==3.17.0
@ShinsukeOkayasu ShinsukeOkayasu added the bug Something isn't working label Apr 25, 2024
@ShinsukeOkayasu
Copy link
Author

Resolved this issue.

I add time.sleep after open Motor-CAD instance.

Added_import_subprocess_2.zip

@jgsdavies jgsdavies reopened this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants