I get the error message
Error HRESULT E_FAIL has been returned from a call to a COM component.
Anytime I import materials more than once using the code below
For 232:
materials = DataModel.Project.Model.Materials
materials.Import(material_file)
As discussed here: https://discuss.ansys.com/discussion/2363/import-materials-in-pymechanical
I am not sure if the import is expected to work only once in ansys mechanical.
Any help will be much appreciated.