measure_line
Measures open polylines on plan sheets at the set scale, computing total length in feet with arc curves and optional vertical rise/drop legs.
Instructions
Measure an open polyline (min 2 points, image px): length_lf at the sheet's scale. Requires the scale to be set. Pass condition to commit it as a linear shape (base, transitions, feature strips, conduit and home runs). A curved run (base along a radius wall, a curved feature strip) takes arc_through: one point on the bow, marked. DROP AND RISE (#441): a plan trace is the flat X–Y path; the material also travels VERTICALLY — a home run drops from the ceiling to a panel, rises to a box. length_lf is the TOTAL: plan + rise + drop. The condition's rise_ft / drop_ft (edit_condition) are the defaults for every run under it; pass rise_ft / drop_ft here to give THIS run its own legs (0 included — "no drop on this one" is a statement), and the reply splits plan_lf / vertical_lf beside the total when a leg exists. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pts | Yes | ||
| sheet | Yes | ||
| drop_ft | No | This run's vertical leg DOWN, in feet, added to its plan length — overrides the condition's drop_ft default for this run (0 = no drop here, whatever the default) | |
| rise_ft | No | This run's vertical leg UP, in feet, added to its plan length — overrides the condition's rise_ft default for this run (0 = no rise here, whatever the default) | |
| condition | No | ||
| arc_through | No | Indices of points that are the MIDDLE of an arc: the trace runs the point before → this point → the point after as the unique circle through the three (the canvas's Curve mode). For a curved wall put one point anywhere ON the bow between its two ends and mark it. The arc is baked to ordinary vertices on commit and origin.curved is stamped; a mark on an end of an open run, or two marks in a row, refuses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arcs | No | How many arc_through bows were laid — present only when the trace was bent; the vertices reported are the baked arc, not the three points you gave | |
| npts | Yes | ||
| drop_ft | No | The drop this run resolved to — present with vertical_lf | |
| plan_lf | No | The flat X–Y trace alone — present only when the run carries a vertical leg | |
| rise_ft | No | The rise this run resolved to (its own, else the condition default) — present with vertical_lf | |
| shape_id | No | Present when condition was passed and the shape committed | |
| length_lf | Yes | The run's TOTAL length: plan trace + rise + drop (#441) | |
| vertical_lf | No | rise_ft + drop_ft — present only when a leg exists |