import_materials_from_excel#

Materials.import_materials_from_excel(input_file: str) list[Material] | bool#

Import and create materials from a csv or excel file.

Parameters:
input_filestr

Full path and name for the csv or xlsx file.

Returns:
List of ansys.aedt.core.modules.material.Material

Examples

>>> from ansys.aedt.core.modules.material_lib import Materials
>>> obj = Materials()
>>> obj.import_materials_from_excel(input_file="example.txt")