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.
AutoAssemble and Geometry Copier are not available on the command line. Use the CadActive ribbon in Creo.
Example
textImport 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 |
|---|---|---|
| Required | Import (and extrude) the DXF. |
| Required | Path to the DXF file. |
| Required (one) | Target models. |
| Optional | Coordinate system name to import against. |
| Optional | Rename map applied before import. |
| 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 |
|---|---|---|
| Required |
|
| Required (one) | Models to export. |
| Optional | Coordinate system for the export. |
| 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, or model parameters). It does not read -FORMAT= from the command line. Dialog steps: Export Outputs from the Current Model. Windchill / Creo View Adapter worker: Configure AutoExport on a Windchill Worker.
Action: AUTO_EXPORT.
Flag | Required? | What it does |
|---|---|---|
| Required (one) | Models that already have Auto Export settings saved. |
Rename models
Action: RENAME_MODELS.
Flag | Required? | What it does |
|---|---|---|
| Required | Old name and new name. |
| Required (one) | Models in session to rename. |