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
jsonKeys
Key | Aliases | What it does |
|---|---|---|
| Required. Identifies the model. | |
|
| |
|
| CSYS on the component being placed. Empty = model default CSYS. |
|
| CSYS on the receiving assembly. Use |
|
| Component Interface on the placing model. |
|
| Component Interface on the receiving side. |
| Applied to the assembled component. See Designator. | |
| Comma-separated component IDs. | |
| Transformation matrix as a string. | |
| Used when creating models: | |
| Model-tree group. Nested groups use | |
| Named color or RGB string. | |
| Array of constraint objects. | |
| Array of |
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_DEFAssembly default CSYS:
ASM_DEF_CSYS(fallbackASM_CSYS_DEF)mating_csysof<DEFAULT>uses default placement
Constraints
Each constraint object can include:
constraint_type— for exampleCSYS,MATE,ALIGN,INSERT,DEF_PLACEMENT(alsoDEFAULT),FIX(alsoFIXED)assy_selection/comp_selection— a geometry name, orpath::geometrywhere the path is a component ID (1.2.3), a designation, or<SKEL>assy_datum_side/comp_datum_side—NONE,YELLOW,RED,BOTHoffset— a number
CSYS names are looked up case-insensitively. Names should follow Creo naming rules (no spaces in parameter or feature names).