export_to_json#
- Choke.export_to_json(file_path: str) bool#
Export choke configuration to JSON file.
- Parameters:
- file_path
str Path to the JSON file to save the configuration.
- file_path
- Returns:
- bool
True if export was successful, False otherwise.
- Raises:
ExceptionIf 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")))