import_materials_from_file#

Materials.import_materials_from_file(input_file: str | None = None) list[Material] | bool#

Import and create materials from a JSON or AMAT file.

Parameters:
input_filestr

Full path and name for the JSON or AMAT 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_file(input_file="example.txt")