Skip to content
Development version. Forge is under active development and testing. APIs, behaviour, coverage and verification results may be incomplete or change without notice; published PASS results are not a support guarantee or production-readiness claim.

DrawingDimension.linear

Create a native linear dimension between two model-space point/corner picks.

Related guide

Signature

DrawingDimension.linear(view, a, b, *, direction="aligned", offset_mm=10, override_text=None, decimals=2, line_through_mm=None)

Use when

Dimension between two real model points/corners that remain uniquely selectable in the authored topology.

Limits

Filleted-away corners are not valid picks. Prefer DrawingDimension.faces() for overall sizes on filleted parts.

Parameters

  • view — Standard view name: front, top, right or iso.
  • a — First model-space XYZ pick.
  • b — Second model-space XYZ pick.
  • direction — aligned, horizontal or vertical.
  • offset_mm — Native dimension offset in paper millimetres.
  • override_text — Optional native dimension text override.
  • decimals — Displayed decimal count, 0..6.
  • line_through_mm — Optional explicit paper point for the dimension line.

Example

DrawingDimension.linear("front", (0,0,0), (20,0,0), direction="horizontal", offset_mm=12)