import_primitives_from_file#

Modeler3D.import_primitives_from_file(input_file=None, primitives=None)#

Import and create primitives from a JSON file or dictionary of properties.

Parameters:
input_filestr, optional

Path to a JSON file containing all primitives to import. It can be used in alternative to parameters.

primitivesdict, optional

Dictionary containing all primitives to import. It can be used in alternative to input_file.

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')