export_materials_to_file#
- Materials.export_materials_to_file(output_file: str) bool#
Export all materials to a JSON or TOML file.
- Parameters:
- output_file
str Full path and name of the JSON file to export to.
- output_file
- Returns:
- bool
Truewhen successful,Falsewhen failed.
Examples
>>> from ansys.aedt.core.modules.material_lib import Materials >>> obj = Materials() >>> obj.export_materials_to_file(output_file="example.txt")