check_dimension_chains
Check that plan dimensions add up before modeling by summing segments and comparing them with overall totals; flag conflicts for resolution.
Instructions
Check that the dimension strings on a plan add up, BEFORE modelling.
chains = [
{"label": "Sisi depan", "segments": [1.0, 0.9, 0.5, 1.5, 2.1], "total": 6.0},
{"label": "Sisi kiri", "segments": [3.0, 3.0], "total": 6.0}
]
All numbers in metres. For every chain the segments are summed and compared
with the overall dimension. Does not need SketchUp. If any chain is in
conflict, show the user which one and ask which number wins; do not guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chains | Yes | ||
| tolerance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |