SolidWorks-CLI

Validate, inspect and transactionally build SOLIDWORKS specs from JSON

Declarative mechanical CAD as code. Validate specifications offline with SOLIDWORKS closed, inspect or change parameters cleanly, extract specs from existing assemblies, and execute transactional builds with automatic backup and rollback.

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

solid spec-check --spec FILE
Validates a solid 2.0 spec JSON
solid spec-show --spec FILE [--outline | --node ID] [--depth N]
Ring 0, no SOLIDWORKS: reads a solid 2.0 spec so the file is never read whole
solid spec-set --spec FILE --param NAME=VALUE [--apply] [--confirm]
Ring 0, no SOLIDWORKS: changes the value of one top-level param of a solid 2.0 spec (a number or = expression) keeping every other byte of the file, and refuses a result that spec-check rejects
solid spec-extract --out FILE [--parts DIR] [--skip-types T1,T2] [--timing] [--pid N]
--timing prints one timing MS FILE PIECE line per gathered piece (and the activation) on stderr, --sweep is ring 0, no SOLIDWORKS
solid build --spec FILE [--plan] [--apply] [--deep] [--adopt] [--force] [--inject-fail ID] [--pid N] [--emit FILE]
Ring 0 unless --apply: expands the recipes of a solid 2.0 spec (recipes/ next to the spec or under the home folder), lowers it to batch items that use only verbs that exist

Common questions

Can I validate a mechanical design specification without opening SOLIDWORKS?

Yes. solid spec-check, solid spec-show and solid spec-set are Ring-0 commands that validate schemas, units, expressions, references and requirements completely offline.

How does transactional CAD building work?

solid build plans changes against the last manifest and with --apply executes them in one transaction with automatic backup and journaled rollback if any step fails.

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