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_file
str Full path and name for the JSON or AMAT file.
- input_file
- Returns:
Examples
>>> from ansys.aedt.core.modules.material_lib import Materials >>> obj = Materials() >>> obj.import_materials_from_file(input_file="example.txt")