import_primitives_from_file#
- Modeler2D.import_primitives_from_file(input_file=None, primitives=None)#
Import and create primitives from a JSON file or dictionary of properties.
- Parameters:
- Returns:
list
List of created primitives.
Examples
>>> from ansys.aedt.core import Icepak >>> aedtapp = Icepak() >>> aedtapp.modeler.import_primitives_from_file(r'C:\temp\primitives.json')