Skip to content
CadActiveSupport

howto

JSON Format

JSON structure AutoAssemble reads when assembling a flat list of components in Creo.

A .json AutoAssemble file is a flat list of components assembled into the selected assembly. The file dialog groups JSON as an Auto Assemble File (not a routing file).

JSON does not support LEVEL tree-builder mode. It does not read mate-to component or port fields, model_template, or a top-level parameters map. Use CSV and Excel Format for those. Run the command with Assemble from a File. Sibling format: XML and NWF Format.

Only the components array is read.

Minimal CSYS mate

json

Keys

Key

Aliases

What it does

model_name

Required. Identifies the model.

model_type

prt / asm or PART / ASSEMBLY.

model_csys

model_placement_csys

CSYS on the component being placed. Empty = model default CSYS.

mating_csys

mated_receiving_csys

CSYS on the receiving assembly. Use <DEFAULT> for default placement.

model_placement_interface

model_interface

Component Interface on the placing model.

mating_interface

mated_receiving_interface

Component Interface on the receiving side.

designation

Applied to the assembled component. See Designator.

component_path

Comma-separated component IDs.

component_trf

Transformation matrix as a string.

component_type

Used when creating models: BULK, SKELETON, HARNESS.

component_group

Model-tree group. Nested groups use /.

color

Named color or RGB string.

constraints

Array of constraint objects.

create_drawings

Array of drawing_name plus optional drawing_template.

JSON does not read top_model, model_template, or a parameters map. The current assembly in Creo is the parent.

Placement

If mating_csys is set, AutoAssemble will not fall back to a packaged (unconstrained) component.

  • Part default CSYS: PRT_CSYS_DEF

  • Assembly default CSYS: ASM_DEF_CSYS (fallback ASM_CSYS_DEF)

  • mating_csys of <DEFAULT> uses default placement

Constraints

Each constraint object can include:

  • constraint_type — for example CSYS, MATE, ALIGN, INSERT, DEF_PLACEMENT (also DEFAULT), FIX (also FIXED)

  • assy_selection / comp_selection — a geometry name, or path::geometry where the path is a component ID (1.2.3), a designation, or <SKEL>

  • assy_datum_side / comp_datum_sideNONE, YELLOW, RED, BOTH

  • offset — a number

json

CSYS names are looked up case-insensitively. Names should follow Creo naming rules (no spaces in parameter or feature names).