Closed narnia-mason closed 9 months ago
I have posted this problem on Discussions, but I think this must be a bug, so I link the post here. Please refer to the corresponding discussion.
If this is a bug, I need a hot-fix! It's urgent! plz... π
ansys_host
ansys-mechanical --port <port>
mech = launch_mechanical(ip=ansys_host, port=port)
client
mech.run_python_script(GEO_IMPORT_SCRIPT.format(cad_path=cad_path))
GEO_IMPORT_SCRIPT = """ geo_import_format = Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.Format.Automatic geo_import_preferences = Ansys.ACT.Mechanical.Utilities.GeometryImportPreferences() geo_import_preferences.ProcessSurfaces = False geo_import_preferences.ProcessNamedSelections = True geo_import_preferences.NamedSelectionKey = "" geo_import = Model.GeometryImportGroup.AddGeometryImport() geo_import.Import(r"{cad_path:s}", geo_import_format, geo_import_preferences) """
and cad_path is the location of your *.scdocfile in ansys_host.
cad_path
*.scdoc
Windows
2023R1
3.10
ansys-api-mapdl==0.5.1 ansys-api-mechanical==0.1.1 ansys-api-platform-instancemanagement==1.0.0 ansys-mapdl-core==0.67.0 ansys-mapdl-reader==0.52.20 ansys-math-core==0.1.3 ansys-mechanical-core==0.10.4 ansys-platform-instancemanagement==1.1.2 ansys-pythonnet==3.1.0rc3 ansys-tools-path==0.3.2 appdirs==1.4.4 asttokens==2.4.1 bcrypt==4.0.1 certifi==2023.7.22 cffi==1.16.0 charset-normalizer==3.3.2 click==8.1.7 clr-loader==0.2.6 comm==0.2.0 contourpy==1.2.0 cryptography==41.0.5 cycler==0.12.1 debugpy==1.8.0 decorator==5.1.1 Deprecated==1.2.14 exceptiongroup==1.1.3 executing==2.0.1 fabric==3.2.2 fonttools==4.44.0 geomdl==5.3.1 grpcio==1.59.2 idna==3.4 importlib-metadata==6.8.0 invoke==2.2.0 ipykernel==6.26.0 ipython==8.17.2 jedi==0.19.1 jupyter_client==8.6.0 jupyter_core==5.5.0 kiwisolver==1.4.5 matplotlib==3.8.1 matplotlib-inline==0.1.6 nest-asyncio==1.5.8 numpy==1.26.1 packaging==23.2 paramiko==3.3.1 parso==0.8.3 pexpect==4.8.0 Pillow==10.1.0 platformdirs==3.11.0 pooch==1.8.0 prompt-toolkit==3.0.40 protobuf==3.20.3 psutil==5.9.6 ptyprocess==0.7.0 pure-eval==0.2.2 pyansys-tools-versioning==0.5.0 pycparser==2.21 Pygments==2.16.1 pyiges==0.3.1 pymeshfix==0.16.2 pymeshlab==2022.2.post4 PyNaCl==1.5.0 pyparsing==3.1.1 python-dateutil==2.8.2 pyvista==0.42.3 pyzmq==25.1.1 requests==2.31.0 scipy==1.11.3 scooby==0.9.2 six==1.16.0 stack-data==0.6.3 tetgen==0.6.3 tornado==6.3.3 tqdm==4.66.1 traitlets==5.13.0 urllib3==2.0.7 vtk==9.2.6 wcwidth==0.2.9 wrapt==1.16.0 zipp==3.17.0
@samigithub2022 do you know what the issue might be here?
Closing this issue since no further information received from @narnia-mason ref : https://github.com/ansys/pymechanical/discussions/490
π Before submitting the issue
π Description of the bug
I have posted this problem on Discussions, but I think this must be a bug, so I link the post here. Please refer to the corresponding discussion.
If this is a bug, I need a hot-fix! It's urgent! plz... π
π Steps to reproduce
ansys_host
's SSH server.ansys-mechanical --port <port>
onansys_host
using SSH.mech = launch_mechanical(ip=ansys_host, port=port)
onclient
mech.run_python_script(GEO_IMPORT_SCRIPT.format(cad_path=cad_path))
, whereand
cad_path
is the location of your*.scdoc
file inansys_host
.π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
2023R1
π Which Python version are you using?
3.10
π¦ Installed packages