Skip to main content
POST
Routing: proposed routes in ceiling space and risers for one tree, as the engine's own commands to accept (`ss.mep.route/1`, MEP32)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
key
string
required

A document key, b3:<hex>: the blob store's id for the canonical bytes

source
integer
required

The source component (an air handler's or a supply point's element id)

system
string
required

The system name the runs carry

terminals
integer[]
required

The terminal components, 1 to 200, each with a free connector of the type's medium and the source's domain (its inlet first)

type
string
required

The engine type every run is drawn with: a round duct type or a pipe type of the project

access
object[]

MEP31's access zones {of, zone: {min, max}}: obstacles to the route, placed with their component

air
object

MEP22's inputs for the source: method?, friction_rate_pa_per_m?, max_velocity_m_s?, supply_delta_t_k?, roughness_mm?, terminal_pressure_pa?, round_sizes_mm?, loads (ss.mep.loads/1), tee_loss? {through, branch} (entered on every round tee the plan places), sections? {rect_depths_mm?, max_aspect?, max_width_mm?, elbow_loss?} and fit_sections? (default true). The oversized-mains method (docs/mep/MEP32b.md): each level run is sized to the room the router reads over and beside it (twice the room the grid leaves about its centre line, up and down and to each side, plus the drawn depth or width; runs joined end to end or through an elbow share the least of theirs): round where a listed round size fits and carries its flow within the limits, else a flat rectangle at a listed depth that fits (100 to 1000 mm every 50 where not entered), no wider than max_width_mm (2000) nor wider than max_aspect (4) times its depth, both our starting values named in the design's defaults; friction on the hydraulic diameter. A run no listed section fits is proposed at its unlimited round size and named in the design's no_fit and the answer's air.no_fit (a main to split into zones, or to give more room); F3's bands then plan each sized run as wide and as deep as its section. Where sizes change, the plan is built again at them and MEP4's fittings proposed on that build (generic rectangular elbows, tees and transitions where a run is rectangular, a reducing tee where the main steps down at a branch, a tighter elbow where the generic one's arms do not fit), kept where MEP22 sizes it (else the drawn fittings stand, said in the notes); elbow_loss is entered on every duct elbow our CFD (MEP23) computed no coefficient for (a flat or tight one). fit_sections false sizes every run round, as before.

bend_cost_mm
number

Cost of a turn in mm of length (default 10 widths of the type: a weight of ours)

clearance_mm
number

The margin kept to every obstacle, 0 to 1000 mm (default 25, ours, not a standard's value); raised to the largest entered MEP31 clearance that can select the routed system

clearances
object[]

MEP31's clearance rules {of, to?, distance | value}, for the check and the route's own clearance

connector
integer

Which of the source's connectors, by its place in the family's list, when it has several free

elbow_loss
number

Pipe routes: a loss coefficient entered on every elbow the plan places (MEP10 reads a pipe elbow's loss only as entered), 0 to 100; refused on a duct route

extract
object

MEP33: a return, an exhaust or an exhaust fan's discharge, sized as HV9 designs it (/v1/bim.air with design.role), in place of air: role (return: grilles to an air handler's return inlet; exhaust: grilles to an exhaust fan's inlet; discharge: the fan's outlet to its louvre), airflows (ss.mep.airflows/1: rooms [{name, room?, airflow_l_s, terminals?}]; a discharge takes one row, the exhaust's flow to its louvre), friction_rate_pa_per_m?, max_velocity_m_s?, roughness_mm?, terminal_pressure_pa? (a grille's, or the louvre's on a discharge), round_sizes_mm?, tee_losses? (momentum_balance, the default: a converging tee with no entered coefficient takes HV9's closed form, named on its loss; entered: none), tee_gains? (floor, the default: a closed-form gain applied as 0, k_computed beside it; refuse: a gap), sections? and fit_sections? as air's. Equal friction, each run on the air it gathers; MEP22's proposals are part of the plan as a supply's are. No questions are asked of a no_fit on such a route (the plant's zoning is the supply's).

insulation
object[]

MEP31's insulation rules {of, thickness}

on
string

The date the tables must be in force on, YYYY-MM-DD (default today, UTC)

pitch_mm
number

Grid pitch, 25 to 1000 mm. Left out: 100 mm, or where that grid passes the router's caps (3,000,000 nodes, 20,000,000 blocked intervals) the finest of 125, 150, ... 1000 mm that fits, said in the answer's settings.pitch_from and notes; an entered pitch is never changed

sleeves
string[]

Families read as sleeves by MEP31

state
string

A state code the value tables must be in force for

tee_cost_mm
number

Cost of a tee in mm of length (default 10 widths of the type)

tolerance
number

MEP31's tolerance for the check on the copy, mm

values
string

Value table ids for MEP31's rules, comma separated, as /v1/bim.clashes takes them

walls
object

MEP32b: crossing the walls that close a ceiling space, made only when asked: {cross: none (the default) | interior, cost_mm? (0 to 100000; default 20 widths of the type), never? [ids or type names never crossed, at most 1000], rated? [ids or type names read as fire-rated, at most 1000]}

zones
object[]

Ceiling spaces entered: {level, bottom, top (mm above the level), plan? [[x0, y0], [x1, y1]]}; a level's entry replaces what its ceilings give

Response

OK

after_key
string

The document the commands make, worked out on the copy

air
object
commands
array
complete
boolean
counts
object
finding_counts
object
findings
array
issue_count
integer

Every issue, listed or not.

issues
object[]

R1 of the rules plan: the answer's findings as ss.issue/1 (at most 500, in the answer's own order), beside its own fields, which are unchanged: {id (stable), domain, code (the domain's own), kind, outcome, cause {class: model | method | brief | undetermined, also?, why, by? (the evidence a split reads), read? (whether it was read), census}, subjects, at?, measure?, threshold?, unit?, margin?, message, ladder? (R3: {ladder, tried [{rung, params {key: {value, source: ours | brief}}, result: cleared | improved | no_change | refused, why}], next?, stopped: cleared | question | exhausted | budget}), question? (the id of the typed question it raised)}.

issues_by_class
object

Every issue counted by its cause class: whose problem each is (the model's, ours, the brief's).

key
string

A document key, b3:<hex>: the blob store's id for the canonical bytes

measures
object
method
string
notes
array
order
string
passes
array
questions
object[]

R2 of the rules plan: what this answer asks, as typed questions (ss.question/1): {schema, id (stable over a re-run), code, domain, rung, scope (what one answer covers: a plant, storeys), message, why {class, sentence, measures}, options [{choice, possible, why_not?, does, consequences [{what, limit?, from?, to?, unit?}], changes_model}], answer_at (the brief's JSON pointer the answer is written at), default? (an adopted practice pack's)}. Absent where nothing is asked. Answer by writing the choice into the brief at answer_at and running again.

regions
array
routes
array
schema
string
settings
object
shafts_not_used
array
source
object
table_gaps
array
terminals
array
work
integer
zones
array