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.faces

Create a native dimension between two parallel planar model faces.

Related guide

Signature

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

Use when

Dimension overall width, depth or thickness robustly when fillets/chamfers mean the nominal outer corners no longer exist.

Limits

Each XYZ pick must lie on a unique planar face and the native backend must accept the requested direction for that view.

Parameters

  • view — Standard view name: front, top, right or iso.
  • a — XYZ point on the first planar face.
  • b — XYZ point on the second planar face.
  • 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.faces("front", (-40,0,4), (40,0,4), direction="horizontal", offset_mm=12, decimals=0)