measure_line
Measure a polyline's length in linear feet at sheet scale, then commit it as a linear shape with an optional condition for takeoff.
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). 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 | ||
| condition | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npts | Yes | ||
| shape_id | No | Present when condition was passed and the shape committed | |
| length_lf | Yes |