Skip to content
CadActiveSupport

howto

Standardize Command Line

Create, copy, or delete layers; apply a CadActive model template; or import and export Designator designation maps from the Creo command line.

Use -CADACTIVE=STANDARDIZE to manage layers, apply a CadActive model template, or export and import Designator designation maps from the command line. Successful template applies and designation-map imports save the model.

Shared flags (Creo startup, sign-in, models, -OUTPUT=, Windchill) are on Creo Parametric Command Line.

Example

texttrue

Layers

These operate on the model directly. They do not use a model template.

Action

What it does

Required flags

LAYERS_CREATE

Creates the named layer on each model.

-LAYER= (a specific name; not *)

LAYERS_COPY

Copies layers from a source model onto the target models.

-LAYER= (* copies all layers) and -LAYER_SOURCE_MODEL=

LAYERS_DELETE

Deletes the named layers from each model.

-LAYER= (* deletes all layers)

All layer actions also need a model via -MODEL, -MODEL_FILE, or -MODEL_DIR.

Apply a model template

These call the same engine as Apply selected / Apply all template details in Creo. Pass -MODEL_TEMPLATE= with the CadActive template name (case-insensitive).

Action: APPLY_MODEL_TEMPLATE applies every table unless you restrict it. Or use a *_CREATE action to apply one table.

Flag

Required?

What it does

-MODEL_TEMPLATE=

Required for template actions

CadActive template name.

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Models to apply to.

-INCLUDE=

Optional

Comma list of tables for APPLY_MODEL_TEMPLATE: ORIENTATIONS, PARAMETERS, SIMPLIFIED_REPS (aliases SIMPREPS, SIMP_REP), SECTIONS, COMBINED_STATES, LAYERS, LAYER_STATES, EXPLODE_STATES, APPEARANCE_STATES, STYLE_STATES, FEATURES, NOTES, RELATIONS.

Name filters

Optional

-ORIENTATION=, -PARAMETER=, -SIMP_REP= (alias -SIMPLIFIED_REP=), -SECTION=, -COMBINED_STATE=, -LAYER_STATE=, -EXPLODE_STATE=, -APPEARANCE_STATE=, -STYLE_STATE=, -NOTE=, -FEATURE=, -LAYER=. Use a name, a comma-separated list, or * for every item in that table. Repeatable.

Per-table actions (each still needs -MODEL_TEMPLATE= and a model):

  • ORIENTATIONS_CREATE

  • PARAMETERS_CREATE

  • SIMPLIFIED_REPS_CREATE (alias SIMPREPS_CREATE)

  • SECTIONS_CREATE

  • COMBINED_STATES_CREATE

  • LAYER_STATES_CREATE

  • EXPLODE_STATES_CREATE

  • APPEARANCE_STATES_CREATE

  • STYLE_STATES_CREATE

  • NOTES_CREATE

  • FEATURES_CREATE — fails if required references are missing, same as the ribbon.

  • RELATIONS_CREATE — adds template relations; it does not replace existing relations.

Applying template layers uses APPLY_MODEL_TEMPLATE -INCLUDE=LAYERS (or -LAYER= as a name filter). That is different from LAYERS_CREATE, which creates empty named layers with no template.

texttrue

Export a designation map

Exports designated components from each assembly to an Excel designation map (the same spreadsheet Designator can save). Non-assembly models are skipped.

Action: EXPORT_DESIGNATION_MAP.

Flag

Required?

What it does

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Assemblies to export. See Creo Parametric Command Line.

-OUTPUT=

Optional

Folder for the .xlsx files. Default is the current working directory. The folder must already exist.

Import a designation map

Reads a designation map (.xlsx or .csv) and applies it to each assembly, then saves the model. Same behavior as importing from Designator, including the optional Windchill attach setting.

Action: IMPORT_DESIGNATION_MAP.

Flag

Required?

What it does

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Assemblies to apply the map to.

-INPUT=

Required

Path to the designation map. Relative paths are resolved from the current working directory.

texttrue

What is not on the command line

  • Copy and delete exist for layers only. Other template tables do not have COPY or DELETE actions.

  • Parameter import or export from a file is not available.

  • Combined states, features, and sections can fail if the model is missing referenced objects — same as the ribbon.