When I want to import an IGES file and plot it, MAPDL server connection terminated
tryzang opened this issue · comments
Discussed in #2947
Originally posted by tryzang March 29, 2024
I want to import an IGES file and then show it, but I get an error
Here's my python code
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(loglevel="ERROR")
# clear
mapdl.finish()
mapdl.clear()
mapdl.prep7()
mapdl.igesin("D:/1", "IGS")
mapdl.geometry.areas.plot()
Here's the error message
C:\Users\UserX\AppData\Local\Programs\Python\Python312\python.exe D:\桌面\3DD\main.py
CRITICAL - pymapdl_global - logging - handle_exception - Uncaught exception
Traceback (most recent call last):
File "D:\桌面\3DD\main.py", line 6, in <module>
mapdl.igesin("D:/1.IGS")
File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\mapdl_grpc.py", line 3388, in igesin
return super().igesin(fname=filename, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\_commands\aux15_.py", line 57, in igesin
return self.run(f"IGESIN,{fname},{ext}", **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\mapdl.py", line 3291, in run
text = self._run(command, verbose=verbose, mute=mute)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\mapdl_grpc.py", line 938, in _run
response = self._send_command(cmd, mute=mute)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\errors.py", line 168, in wrapper
raise MapdlExitedError("MAPDL server connection terminated") from None
ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated
进程已结束,退出代码为 1
Also, I have this question, if I want to import a file in STL format and do finite element analysis, is there any way?
Thank you for your reply~~