Working on an issue that was crashing my Mechanical sessions down to these 2 lines. It only crashes on the 2nd or 3rd run (while in a single session). What's strange is running New()
repeatedly on its own doesn't crash it, nor does running theImport()
command repeatedly on its own. It's only when they're both run together does it kill Mechanical.
ExtAPI.DataModel.Project.New()
Model.Materials.Import("C:/path/to/material.xml")
Any ideas?
The XML file contains a single material definition.
Ansys Mechanical 2023R2