Inspect SOLIDWORKS feature trees, dimensions, mass, holes and configurations
Read-first engineering inspection. Before changing any geometry, an AI agent or script can read the feature tree, measure distances and bounding boxes, inspect mass and material assignments, list holes, and manage configurations, equations and custom properties with structured JSON output.
15 of the 92 verbs · Windows x64 · Late-bound SOLIDWORKS COM API
solid tree [--file FILE] [--expect FILE] [--all] [--digest] [--limit N] [--pid N]- START HERE: outlines the active part
solid features [--file FILE] [--expect FILE] [--pid N] [--digest] [--type T[,T]]- a sketch is listed twice: at top level and under its consumer, where it carries nested: true
solid feature-def --feature NAME [--file FILE] [--expect FILE] [--edges] [--members A,B] [--pid N]- Read-only API exploration of one feature's definition (Fillet, Chamfer, Revolution, Extrude...): members = its readable scalar properties
solid part-dims [--feature NAME] [--limit N] [--min-mm X] [--max-mm Y] [--file FILE] [--expect FILE] [--pid N] [--digest]- Dimensions of the active part: full name (D1@Sketch1) and value in SI (m, rad), optionally only those of one feature
solid bbox [--components] [--deep] [--limit N] [--file FILE] [--expect FILE] [--pid N] [--digest]- Axis-aligned bounding box of the active part (visible bodies) or assembly (union of the top-level component boxes), SI (m) and mm: min, max, size, in the document frame
solid measure --ref A --ref B | --component NAME --component NAME [--file FILE] [--expect FILE] [--pid N]- Minimum distance between two faces or edges of the active part, each a persistent reference from refs-list or refs-of: distance and normalDistance in SI (m) and mm, delta xyz (touching or coincident entities: those fields are null and…
solid mass-props [--file FILE] [--expect FILE] [--pid N] [--digest]- Mass, volume, area, centroid and moments of the active part, always SI
solid holes [--limit N] [--min-mm X] [--max-mm Y] [--raw] [--file FILE] [--expect FILE] [--pid N] [--digest]- Cylinder faces of the active part grouped by axis line, diameter and sense: kind hole or boss, diameterMm, depthMm (axial extent of the face boxes), axis, positionMm (axis point at mid-depth), faces, through
solid custom-props [--file FILE] [--expect FILE] [--pid N]- Custom properties of the active part or drawing: document level and active configuration
solid set-custom-prop --name N [--value V | --delete] [--config C] [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]- Adds, changes or deletes a custom property of the active part or drawing
solid configs [--file FILE] [--expect FILE] [--pid N]- Configurations of the active document and which is active
solid config-add --name NAME [--from BASE] [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]- Adds a configuration NAME to the active part, starting from BASE
solid config-delete --name NAME [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]- Deletes the configuration NAME of the active part (the undo of config-add)
solid config-switch --to NAME [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]- Switches the active configuration of the active part
solid equation [--add EQ] [--set NAME=VALUE [--config NAME]] [--link FILE] [--update] [--rebuild] [--remove N] [--file FILE (open, writable)] [--expect FILE] [--pid N] [--confirm]- Equations of the active part or assembly (the document is not opened or closed): with no action it lists them as {index, text, value} with linked and file
Common questions
How do I inspect a SOLIDWORKS part or assembly as JSON?
solid tree outlines the feature tree or assembly hierarchy, solid features details features, solid part-dims lists dimensions, solid bbox reports bounding boxes and solid mass-props returns mass, volume, centroid and material assignments.
Can I measure minimum distance between faces or assembly components?
Yes. solid measure computes exact minimum distance in millimetres between two persistent face or edge references in a part, or between two named top-level components in an assembly, without changing the model.
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.
Other verb families
- Open, create, save and sandbox SOLIDWORKS files from the command line13 verbs
- Create, read, constrain and edit 2D SOLIDWORKS sketches by command10 verbs
- Build and edit 3D SOLIDWORKS part features, datums and materials17 verbs
- Automate SOLIDWORKS assemblies, mates, BOM and interference checks10 verbs
- Generate SOLIDWORKS drawings, section views, hole callouts and CAD exports7 verbs
- Validate, inspect and transactionally build SOLIDWORKS specs from JSON5 verbs
- Address SOLIDWORKS faces and edges by persistent reference and inspect COM APIs7 verbs
- Check SOLIDWORKS installations, ROT sessions, health, paths and batch runs8 verbs