export_materials_to_file#

Materials.export_materials_to_file(output_file: str) bool#

Export all materials to a JSON or TOML file.

Parameters:
output_filestr

Full path and name of the JSON file to export to.

Returns:
bool

True when successful, False when failed.

Examples

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