export_to_json#

Choke.export_to_json(file_path: str) bool#

Export choke configuration to JSON file.

Parameters:
file_pathstr

Path to the JSON file to save the configuration.

Returns:
bool

True if export was successful, False otherwise.

Raises:
Exception

If there’s an error during file writing.

Examples

>>> from pathlib import Path
>>> from ansys.aedt.core.modeler.advanced_cad.choke import Choke
>>> choke = Choke()
>>> choke.export_to_json(str(Path("choke_config.json")))