write_configuration_file#

ansys.aedt.core.generic.file_utils.write_configuration_file(input_data: dict, output_file: str | Path) bool#

Create a configuration file in JSON or TOML format from a dictionary.

Parameters:
input_datadict

Dictionary to write the file to.

output_filestr or pathlib.Path

Full path to the file, including its extension.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core.generic.file_utils import write_configuration_file
>>> write_configuration_file({"units": "mm"}, r"C:\Temp\settings.json")