SolidWorks-CLI

Generate SOLIDWORKS drawings, section views, hole callouts and CAD exports

From 3D model to manufacturing deliverables. Generate standard drawings with overall dimensions, section views and hole callouts, inspect sheets and dimensions, and export STEP, STL, Parasolid, PDF, DXF or DWG files in one repeatable call.

7 of the 92 verbs · Windows x64 · Late-bound SOLIDWORKS COM API

solid new-drawing --file PART|ASM [--template DRWDOT] [--format NAME|PATH|none] [--views std3|std3+iso|none] [--dims overall|none] [--bom] [--save-as FILE] [--pdf FILE] [--close] [--pid N] [--confirm] [--apply]
Write verb, dry run by default (plans template, views, dims): opens PART|ASM (a part or an assembly) if needed, a new drawing from --template or the default drawing template, the 3 standard views
solid sheets [--file FILE] [--expect FILE] [--pid N] [--digest]
Sheets of the active drawing: name, scale, width and height in m
solid views [--file FILE] [--expect FILE] [--pid N] [--digest]
Views of the active drawing: sheet, name, type code, scale, referenced model, orientation (front, top, right, isometric, section, detail, auxiliary ...), holes (full circles facing the view: the ones drawing-dim --holes would dimension)
solid dims [--file FILE] [--expect FILE] [--pid N] [--digest]
Drawings only (for a part use part-dims, for an assembly mates or components): dimensions of the active drawing by view, full name and value in SI, kind dimension or callout (a hole callout from drawing-dim --callout)
solid drawing-view --view NAME --section h|v [--offset MM] [--label L] [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]
Adds a section view to the active drawing from its view NAME (views lists the names): a horizontal or vertical cut line through the center of that view, moved by --offset
solid drawing-dim --view NAME --holes [--callout] [--min-dia X] [--max-dia Y] [--limit N] [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]
Adds diameter dimensions (--callout: hole callouts) to the full circular edges of view NAME that face the viewer, one per distinct circle (the two rims of a through hole count once), up to --limit (20)
solid export --format F --out FILE [--pid N]
Export the active document

Common questions

Can SolidWorks-CLI generate a 3-view engineering drawing automatically?

Yes. solid new-drawing creates a drawing from a part or assembly with standard views, sheet format title block, overall dimensions or BOM table, and optional PDF export; solid drawing-view adds section views and solid drawing-dim dimensions circular holes.

Which CAD export formats are supported?

solid export writes STEP, STL, Parasolid and PDF from parts, assemblies or drawings, plus DXF and DWG from active drawings, defaulting to a dry run until --apply.

Run these verbs on your own SOLIDWORKS models

Every verb above returns structured JSON and takes plain command-line flags. SolidWorks-CLI is local and on-premise: zero UAC elevation, zero SOLIDWORKS interop DLLs redistributed, and every write is a dry run until you pass --apply. Fourteen-day free trial with corporate e-mail, no card.

Start a 14-day free trial

Other verb families