How to import an Ansys model (.cdb or .inp) into pyMechanical #1033
-
Hi, I have been searching through the pyMechanical documentation but I can't see details on how to import an Ansys model / Mesh. I have already conducted meshing (I can save my meshes as .cdb files or .inp files). I would like to import my model directly into pyMechanical for constructing simulations. If you could provide some guidance that would be amazing. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi I found the method from looking within general mechanical scripting documentation. Here it is for anyone else: Import the modelmimp=Model.GeometryImportGroup.AddModelImport() |
Beta Was this translation helpful? Give feedback.
Hi I found the method from looking within general mechanical scripting documentation.
Here it is for anyone else:
Import the model
mimp=Model.GeometryImportGroup.AddModelImport()
mimp.ModelImportSourceFilePath=input_file
mimp.Import()