Pymechanical launch fail #1158
Replies: 2 comments
-
@sameerONsemi Thanks for opening the issue. Could you please provide more information.
|
Beta Was this translation helpful? Give feedback.
-
Hi @dipinknair thanks for the reply
So i was able to launch the mechanical using Py- mechanical on one of other workstation but now i got stuck with the CAD import (i am writing the code snippet but dont know the specific commands for that ) script_GeometryImport = f""" Format of Geometry filegeomImport_format = Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.Format.Automatic #Preferences for Geometry file geomImport_preferences.ProcessSolids = TruegeomImport_preferences.ProcessSurfaces = FalsegeomImport_preferences.ProcessLines = FalsegeomImport_preferences.ProcessNamedSelections = TruegeomImport_preferences.NamedSelectionKey = "NSel"geomImport_preferences.ProcessMaterialProperties = TruegeomImport_preferences.MixedImportResolution = GeometryImportPreference.MixedImportResolution.SolidgeomImport_preferences.ProcessCoordinateSystems = TruegeomImport_preferences.CoordinateSystemKey = "CSys"geomImport.Import(r'{geometryPath}', geomImport_format, geomImport_preferences) i guess ,i have to go through the documentation of the mechanical and Py mechanical scripting in order to debug it . Reagards |
Beta Was this translation helpful? Give feedback.
-
Hi i am new to pymechanical ,
I have pycharm as interpreter and i am using python 3.10.
after installing the libraries required for pymechanical
i am using this code(pyansys website) to launch it :
Beta Was this translation helpful? Give feedback.
All reactions