Skip to content
CadActiveSupport

howto

Automate Command Line

Import DXF profiles, export 3D formats, run Auto Export, or rename models from the Creo command line.

Use -CADACTIVE=AUTOMATE to import a DXF, export solid 3D files, run Auto Export, or rename models from the command line.

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

note

AutoAssemble is not available on the command line. Use the CadActive ribbon in Creo.

AutoAssemble is not available on the command line. Use the CadActive ribbon in Creo.

Example

texttrue

Import DXF

Imports a DXF into each named model, then saves. IMPORT_DXF and IMPORT_DXF_EXTRUDE currently run the same workflow: the DXF is imported and the profile is extruded.

Flag

Required?

What it does

-ACTION=IMPORT_DXF or IMPORT_DXF_EXTRUDE

Required

Import (and extrude) the DXF.

-INPUT=

Required

Path to the DXF file.

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Target models.

-CSYS=

Optional

Coordinate system name to import against.

-RENAME=old=new

Optional

Rename map applied before import.

-PARAM=name=value

Optional

Set a model parameter before import.

Export 3D

Writes a solid 3D file for each model. This does not run CadActive reports.

Action: EXPORT_3D.

Flag

Required?

What it does

-FORMAT=

Required

PDF, IGES, STEP, SAT, or GLB.

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Models to export.

-CSYS=

Optional

Coordinate system for the export.

-SIMP_REP=

Optional

Simplified representation to export.

Auto Export

Runs the Auto Export pipeline already saved on the model (formats and reports from the Auto Export dialog, model parameters, or external data). It does not read -FORMAT= from the command line.

Action: AUTO_EXPORT.

Flag

Required?

What it does

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Models that already have Auto Export settings saved.

Rename models

Action: RENAME_MODELS.

Flag

Required?

What it does

-RENAME=old=new

Required

Old name and new name.

-MODEL / -MODEL_FILE / -MODEL_DIR

Required (one)

Models in session to rename.