Primitives file#

The primitives configuration file allows you to create primitive shapes from a JSON file.

This code creates primitive shapes from the JSON file:

from ansys.aedt.core import Icepak
ipk = Icepak()
ipk.modeler.import_primitives_from_file("primitive_example.json")
ipk.release_desktop()

File structure example:

Primitive example