Materials import crashing Mechanical?

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

Tagged:

Answers

  • willblatt
    willblatt Member Posts: 13
    Name Dropper First Comment
    edited January 24

    I should note, this is in Mechanical stand-alone mode. Just tried it in Workbench Mechanical and it doesn't crash there.

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 241
    First Anniversary First Comment 5 Likes Ansys Employee

    I don’t have an answer for this but you should also contact your local support due to crash behavior. This indicates some form of a bug.