load_from_json#

classmethod Weave.load_from_json(input_file: str | Path) Weave#

Load weave parameters from a JSON or TOML file and return a configured Weave.

Parameters:
input_file: str or :class:`pathlib.Path`

Full path to the file, including its extension.

Returns:
Weave

Configured Weave instance.

Examples

>>> from ansys.aedt.core.modeler.advanced_cad.weave import Weave
>>> weave1 = Weave()
>>> weave1.export_to_json(r"C:\Temp\parameters.json")
>>> weave2 = Weave.load_from_json(r"C:\Temp\parameters.json")