add_dimension
Adds dimensions to SolidWorks drawing views between references or for a single feature, supporting single, baseline, chain, and ordinate styles with direction and offset controls.
Instructions
Dimension in a view between references, or the size of one.
ref / to: 'edge:-x' (the face facing -x, seen edge-on), 'hole:CBore1' (its
centre; alone its diameter), 'feature:CornerFillet' (alone: its radius), or
a model point [x, y, z] (the edge nearest it). style 'single' (ref to to),
or 'baseline' / 'chain' / 'ordinate' with to=[ref, ref, ...] measured from
ref. direction 'auto', 'horizontal', 'vertical', 'aligned'. side 'below',
'above', 'left', 'right' (default nearer the geometry); offset_mm from the
outline (default the first free row: 10, 18, 26 ...). Returns ids, values,
boxes, and warnings on overlaps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| ref | Yes | ||
| side | No | ||
| view | Yes | ||
| style | No | single | |
| direction | No | auto | |
| offset_mm | No |