mcp
v0.1.3Build wiring schematics in Ohmstead: parts, wires, terminal strips, cables, checks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Who am I
The signed-in Ohmstead user, plan, and the teams and classes they're in (with their role).
list_projects List projects
The user's Ohmstead projects, newest first. Personal workspace by default; pass team (name or id, see whoami) for that team's projects you can see.
| Parameter | Type | Description |
|---|---|---|
team | string | Team or class name or id. Omit for your personal projects. |
get_project Get project
A project's subsystems, components (tag → Codex part), P&ID items and lines, wires (grid rows) and current issues. Set format=json for the raw document.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
format | string |
get_bom Get bill of materials
The project's bill of materials: devices by Codex part (fuses and breakers per trip rating), terminal strip blocks and accessories, connector housings with their contacts, seals, plugs, backshells and locks, splices, cables by spec with total length, and loose wire by gauge and color with total length. format=csv gives a spreadsheet-ready CSV.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
format | string |
export_project_file Export project file
The project as an Ohmstead project file (.ohmstead): plain text, one line per part and wire, sorted, addressed by tag, with drag positions and draw order in the last section. Commit it to Git or edit it and bring it back with import_project_file. Lines starting with # at the top list references that were left out because what they point at no longer exists.
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
import_project_file Import project file
Read an Ohmstead project file (.ohmstead text). With project_id it goes over that project: components, subsystems and wires keep their ids by tag, so saved positions and embeds survive. Without apply it only reports what would change (always do that first and show the user); apply=true saves. Without project_id it makes a new project named title (Free plan: max 3). Parts resolve by id, then by maker and number; anything missing or ambiguous is named and nothing is saved.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
apply | boolean | |
project_id | string | |
team | string | Team or class for a new project. Omit for your personal workspace. |
title | string | Name for a new project (without project_id). |
create_project Create project
Create a new project (Free plan: max 3, always public). sample=true starts from the sample project (the Arduino Parking Sensor template). Pass team (name or id) to create it in a team or class: it starts private to you and the team's owner/admins; share it from Ohmstead.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
sample | boolean | |
team | string | Team or class name or id (you must be an editor/student or up). Omit for your personal workspace. |
update_project Update project settings
Rename, change status/visibility (Pro/Student only for private), default signal flow, title block fields, the sizing standard and its ampacity column, the length unit, the voltage-drop limits, or the spare-terminal percentage. title_block keys are the PDF template's field ids (built-in: drawingNo, drawnBy, customer, rev; custom template fields have their own ids).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
ambient_c | Ambient temperature the ampacity is corrected for, in °C (0–100). null = the default 40 °C (inside the enclosure). | |
bom_report | boolean | PDF: a bill of materials, the last section (default on when the project has anything to list). |
bundle_min | Fewest wires between two subsystems that draw as one bundle on screen (one trunk line; it never prints). Default 3; null resets it. | |
connector_tags | string | Tags for new in-line connectors (category connector): x = X10, X11… (default), jp = J1… for female, P1… for male. Existing ones keep their tags. |
default_block | string | null | Terminal block part (id or part number) new strips and strip terminals use when none is picked. null = generic block. |
default_pe_block | string | null | Same, for protective-earth strips. null = generic PE block. |
drop_branch_pct | Branch voltage-drop limit — from the last fuse or breaker to the load — in % of the signal's volts (0–100). null = the default 3 %. | |
drop_total_pct | Total voltage-drop limit to the supply, in % of the signal's volts (0–100). null = the default 5 %. | |
flow | string | |
gauge_on_labels | boolean | Printed wire labels include the gauge ("24VDC (+) 18 AWG BU"). Default false. |
gauge_units | string | Wire gauge units in the grid, labels and PDF (default awg). In mm2 projects a bare gauge number means mm². |
harness_min | Deprecated: the old name of bundle_min. | |
harness_report | boolean | PDF: a drawing sheet and a breakout table per harness you made (default true). Bundles never print. |
length_unit | string | Unit lengths are entered and shown in (default ft). Stored lengths are metres either way. |
pack_on_fix | boolean | fix_fanouts / Fix all re-pack the strips they touch. |
pid_sheets | boolean | PDF: P&ID sheets after the schematic (default on when the project has P&ID items). |
pinout_report | boolean | PDF: a pinout table per mated pair, feed-through and wired unmated connector (default true). |
project_type | What the project is; sets defaults. vehicle (vehicle / harness): fix_fanouts uses splices; enclosure (cabinet) and electronics: terminal strips. null clears it. | |
sizing_column | string | null | Ampacity / insulation column of the standard (e.g. "75C", "105C-outside"); must be one of its columns. null = the standard's default. |
sizing_report | boolean | PDF: a sizing report page, one section per fuse or breaker (default on when any wire has sizing data). |
sizing_standard | string | Sizing standard behind gauge and fuse suggestions (default nec). electronics: dev boards, breakouts and header pins, ampacity down to 30 AWG and no minimum size on DC or signal wires. |
spare_terminal_pct | Packing (Clean up, fix_fanouts) appends this many spare terminals per strip, in % of its used terminals (0–50), empty and unlocked at the end. null = none. | |
status | string | |
strip_naming | string | Tags for new strips: tb = TB1 / TB-PWR1 (default), iec = -X1, -X2. Existing strips keep their tags. |
strip_report | boolean | PDF: a terminal strip report page per strip (default true). |
title | string | |
title_block | object | |
visibility | string |
add_components Add components
Place Codex parts in a project under unique tags (e.g. PLC_MAIN, PSU1, K1); no tag = the next free one for the part's category (in-line connectors: X10… or J1 / P1, see update_project connector_tags). The part must already exist in the Codex (search_codex / save_part). subsystem = name or id of an existing subsystem.
| Parameter | Type | Description |
|---|---|---|
components * | array | |
project_id * | string |
update_components Update components
Retag a component, relink it to another Codex part, move it into a subsystem (subsystem: name/id, or "" for top level), put an I/O module in a PLC slot (plc + slot; a module already in that slot is taken out), or set a fuse/breaker's trip rating (trip_a; must be one of the part's allowed ratings when it lists any), or pick the contact of an in-line connector's pin by hand (contact_by_pin). Identify by current tag.
| Parameter | Type | Description |
|---|---|---|
changes * | array | |
project_id * | string |
remove_components Remove components
Delete components (devices or terminal strips) by tag, with every wire and cable on them. Modules in a removed PLC's rack come out of it; linked P&ID items stay and are unlinked. Nothing is deleted if any tag is unknown.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
tags * | array |
add_subsystem Add subsystem
Create a subsystem (group) to organize components, optionally nested under a parent subsystem, with its own signal flow.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
project_id * | string | |
flow | string | |
parent | string |
update_subsystem Update subsystem
Rename a subsystem, move it under another parent (parent: name/id, or "" for top level; its components and child subsystems come with it), change its signal flow, or mark it as an enclosure (every wire or cable crossing its frame must then pass a feed-through or gland on its wall).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
subsystem * | string | Name or id |
enclosure | boolean | true = an enclosure (cabinet, box): crossings need a feed-through or gland; false = a plain subsystem |
flow | string | |
name | string | |
parent | string |
split_subsystem Split subsystem
Split a subsystem in two: move some of its own components and child subsystems into a new subsystem beside it (same parent, signal flow and collapsed state; not an enclosure). Use it when a collapsed block has too many ports to fit a sheet. Wires and cables don't change; the ones between the two halves run between two blocks. Name what moves with components (tags) and/or subsystems (names or ids), all directly inside the subsystem, or pass half: true to move about half, keeping blocks wired to each other together. At least one member must stay.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the new subsystem |
project_id * | string | |
subsystem * | string | Name or id of the subsystem to split |
components | array | Tags of components directly in the subsystem to move |
half | boolean | true = pick about half automatically, by wiring; don't combine with components / subsystems |
subsystems | array | Names or ids of child subsystems to move (with everything in them) |
remove_subsystem Remove subsystem
Delete a subsystem. Nothing else is deleted: its components and child subsystems move up to its parent (or the top level).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
subsystem * | string | Name or id |
layout_view Layout of a view
Run the schematic layout for one view (the project, or a subsystem's drill-down) and list every block's position and size and every print page's frame, so blocks and pages can be placed without guessing. Block x, y are relative to the block's own subsystem (what set_block_positions takes); ax, ay are absolute in the view (what pages use). Pages are a fixed 1504 × 800 frame; automatic pages (auto:0, auto:1…) cover whatever no placed page holds. Takes a few seconds, up to ~15 s on a large project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
subsystem | string | Subsystem whose drill-down view this is (name or id). Omit for the project view. |
set_block_positions Set block positions
Pin blocks (components, terminal strips or subsystems) at positions in one view, instead of where auto-layout puts them. x, y are the block's top-left, relative to its own subsystem in that view (layout_view shows current values). Unpinned blocks keep laying out automatically. Wires reroute in the app.
| Parameter | Type | Description |
|---|---|---|
blocks * | array | |
project_id * | string | |
subsystem | string | Subsystem whose drill-down view this is (name or id). Omit for the project view. |
clear_block_positions Clear block positions
Unpin every block in one view so it goes back to auto-layout. Other views keep theirs.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
subsystem | string | Subsystem whose drill-down view this is (name or id). Omit for the project view. |
add_page Add print page
Place a print page: a fixed 1504 × 800 frame in one view with its top-left at x, y (absolute view coordinates, as layout_view's ax, ay and frames). Blocks whose centre is inside print on it; the rest go on automatic pages after the placed ones. Pages print in the order they were added within each view.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
project_id * | string | |
x * | number | |
y * | number | |
subsystem | string | Subsystem whose drill-down view this is (name or id). Omit for the project view. |
update_page Update print page
Rename or move a print page. page: id or name of a placed page, or an automatic page "auto:0", "auto:1"… (with subsystem for a drill-down view; automatic pages can only be renamed, and an empty name gives back the automatic one).
| Parameter | Type | Description |
|---|---|---|
page * | string | |
project_id * | string | |
name | string | |
subsystem | string | Subsystem whose drill-down view this is (name or id). Omit for the project view. |
x | number | |
y | number |
remove_page Remove print page
Remove a placed print page (id or name). Its blocks stay where they are and print on automatic pages.
| Parameter | Type | Description |
|---|---|---|
page * | string | |
project_id * | string | |
subsystem | string | Subsystem whose drill-down view this is (name or id). Omit for the project view. |
add_terminal_strip Add terminal strip
Add a terminal strip (auto-tagged TB1, TB2…). Usually fix_fanouts creates strips for you; use this for planned strips. Its terminals use `block` if given, else the project default block, else a generic block (terminal_type, clamps_per_side).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
block | string | Terminal block part for this strip: part id or part number, or "PE" for the project's PE block. Omit for the project default. |
clamps_per_side | integer | |
subsystem | string | |
terminal_type | string | |
terminals | integer |
add_splice Add splice
Add splices (auto-tagged SP1, SP2…): one-conductor joints like a terminal strip, created on demand. Every wire lands on SP1:1 and a splice takes any number of wires. Usually fix_fanouts via "splice" creates them for you. part = a Codex splice part (id or part number, category splice) whose wire range and most wires validate_project checks; omit for a generic splice. Remove one with remove_components.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
count | integer | |
part | string | Splice part id or part number (category splice). Omit for a generic splice. |
subsystem | string |
set_strip_blocks Set strip terminal blocks
Set the terminal block part of strip terminals (a range by label, or all). Wires keep their level: bare labels become level A on a multi-level block and back. Refused if wires sit on a level the new block doesn't have. block = part id or part number; omit (null) to return the terminals to the strip default.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
strip * | string | Strip tag, e.g. TB1 |
block | string | null | |
from | string | First terminal label (default: first) |
to | string | Last terminal label (default: last) |
optimize_strips Optimize terminal strips
Re-pack terminal strips to the fewest terminals: each net becomes one jumpered run sized to its wires (block capacity), empty spares go, like signals sit together, unlocked terminals are renumbered 1..n (locked ones keep their numbers). Multi-level and diode/LED blocks, cabled nets, and nets whose wires don't fit a run's clamp range (block wire_mm2) are left as they are. With spare_terminal_pct set (update_project), each packed strip ends with that share of its used terminals as empty spare terminals. Device connections never change. apply=false (default) only reports the before/after counts;…
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
apply | boolean | |
strip | string | Strip tag; omit for every strip |
split_strips Split terminal strips by subsystem / function
Split strips so each serves one subsystem and/or one function: power (TB-PWR), PE (TB-PE), AC (TB-AC), field I/O per PLC module (TB-IO); the rest stays on plain TB strips. Everything tied together on a strip moves as one unit; a unit serving several subsystems goes to their common parent (shared distribution at the level above). Wires move with their terminals; device connections never change. apply=false (default) reports the plan; ask the user before applying. pack=true also re-packs the results (like optimize_strips).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
apply | boolean | |
by | string | |
pack | boolean | |
strip | string | Strip tag; omit for every strip |
set_strip_parts Override strip part quantities
Override how many of a part a strip needs (accessories: end plates, end stops, jumper bars, markers, or any extra part). Ohmstead works these out from the blocks; an override replaces that count (0 removes the part). qty null = back to the worked-out count. Block counts can't be overridden; change the terminals instead.
| Parameter | Type | Description |
|---|---|---|
parts * | array | |
project_id * | string | |
strip * | string | Strip tag, e.g. TB1 |
add_connections Add wires
Append wires (grid rows) between component terminals. Terminals must exist on the Codex part; terminal strips accept new terminal labels. Returns the issues after the change.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
wires * | array |
update_connection Update wire
Change one wire (grid row) by id: either end, signal, note, draw mode, gauge, harness, or length (in the project's unit; null clears). Omitted fields stay the same; note "" clears it, gauge "" goes back to the signal type's gauge, harness "" takes it out of its harness.
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | |
project_id * | string | |
bundle | string | Deprecated: the old name of harness. |
draw | string | auto (default), force a drawn wire, or force reference flags |
from | string | "TAG:TERMINAL", e.g. "PSU1:+24V" |
gauge | string | Wire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge. |
harness | string | Harness tag (H1) or name to build this loose wire into; text that names no harness makes one ("rear loom" becomes H<n> named rear loom). A harness prints and its conductors count together to derate am… |
length | Wire length in the project's length unit (ft default, or m; update_project length_unit), for the voltage-drop check. null clears it. Cable conductors inherit the cable's length. | |
note | string | |
signal | string | Signal type name or id. Default: the From terminal's Codex signal. |
to | string | "TAG:TERMINAL", e.g. "PLC_MAIN:24V" |
remove_connections Remove wires
Remove wires (grid rows) from a project by id. This edits the project; it never deletes projects or Codex parts.
| Parameter | Type | Description |
|---|---|---|
connection_ids * | array | |
project_id * | string |
add_cable Add cable
Add a multi-conductor cable between two connectors, e.g. from "B1:X1" to "IO1:X2". Pins are mapped 1:1 (same pin names, else pin order) unless conductors are given. Tag defaults to the next free W1, W2…
| Parameter | Type | Description |
|---|---|---|
from * | string | "TAG:CONNECTOR" |
project_id * | string | |
to * | string | "TAG:CONNECTOR" |
bundle | string | Deprecated: the old name of harness. |
conductors | array | Explicit pin map instead of 1:1 |
gauge | string | Default gauge for its conductors. Wire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge. |
harness | string | Harness tag (H1) or name to build the cable into; text that names no harness makes one. Its conductors count with the harness's other wires for derating. |
length | Cable length in the project's length unit (ft default, or m; update_project length_unit). Its conductors inherit it. null = unset. | |
spec | string | Printed on the cable, e.g. "4×0.34 PUR 5m" |
tag | string |
mate_connectors Mate connectors
Plug two connectors together: an in-line connector and its other half ("X10" and "X11"), or an in-line connector on a device's connector ("X10" and "PLC1:X1"). Mated pins are one conductor, 1:1 (same pin names, else pin order) unless pins are given. Each connector can be in one mate. Gender, keying and pin counts are checked by validate_project.
| Parameter | Type | Description |
|---|---|---|
a * | string | "X10" (an in-line connector) or "TAG:CONNECTOR" |
b * | string | "X11" or "TAG:CONNECTOR" |
project_id * | string | |
pins | array | Explicit pin map instead of 1:1 |
unmate_connectors Unmate connectors
Unplug a mate: name either of its connectors ("X10" or "TAG:CONNECTOR") or its id from get_project. The connectors and their wires stay.
| Parameter | Type | Description |
|---|---|---|
connector * | string | "X10", "TAG:CONNECTOR" or a mate id |
project_id * | string |
get_pinouts Get pinouts
Pinout tables, as printed in the PDF: each mate with both halves side by side, each feed-through with its two sides, and each unmated connector that has wiring. Per cavity: signal, wire (cable or harness tag), color, gauge, contact and seal or cavity plug (in-line housings), and the far end. Name a connector ("X10", "PLC1:X1") for its table only; omit for all.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
connector | string | "X10", "TAG:CONNECTOR", or a feed-through tag; omit for every table |
assign_gland Assign gland
Put a cable, or a loose wire, through a cable gland on an enclosure wall (G2): gland "GL1", or null to take it out. One cable per gland; loose wires may share a gland but not with a cable. Set the cable's outer diameter with update_cable od_mm so validate_project can check it fits.
| Parameter | Type | Description |
|---|---|---|
gland * | string | null | Gland tag (GL1), or null to clear |
project_id * | string | |
cable | string | Cable tag (W1) or id |
wire | string | A loose wire: its id from get_project, or "FROM:TERM -> TO:TERM" |
update_harness Update harness
Harnesses (H1, H2…) are assemblies you make and someone builds: a tag, a name, a part number and the loose wires and cables built into them. They print (tagged trunk, drawing sheet, breakout table, BOM line) and their current-carrying conductors, cables' included, count together to derate ampacity. Create one (omit harness, give a new H tag, or from_bundle to start from a bundle's wires), add or remove wires (ids from get_project) and cables (tags), retag, name it, set its part number, draw it as a trunk or as separate wires (everywhere or in one view), or delete it (its wires and cables sta…
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
add_cables | array | Cable tags or ids to put in it |
add_wires | array | Wire ids to put in it |
delete | boolean | |
from_bundle | string | Bundle tag (B1) or key from get_project: its wires go into the harness (a new one unless harness names one). |
harness | string | Harness tag (H1) or name. Omit, or give a tag no harness has, to create one. |
name | string | null | null clears it |
new_tag | string | |
part_number | string | null | Part or drawing number of the built harness, for the BOM and its drawing sheet. null clears it. |
remove_cables | array | |
remove_wires | array | |
show | One trunk or separate wires, in every view. | |
view | string | null | Subsystem name or id for view_show; null = the top-level view. |
view_show | Trunk or separate wires in that view; null goes back to `show`. |
update_bundle Update bundle
Screen overrides for a bundle: all loose wires between the same two subsystems (or a subsystem and a terminal strip), worked out automatically and drawn on screen as one line with a tag (B1, B2…). Bundles never print (the PDF draws those wires separately) and don't derate. get_project lists them. Retag, name it, draw it as a trunk or as separate wires, everywhere or in one view, change its minimum wire count, or make it one multi-core cable (promote). null clears a field back to automatic. The project-wide minimum is update_project bundle_min. To make a bundle's wires a harness that prints,…
| Parameter | Type | Description |
|---|---|---|
bundle * | string | Bundle tag (B1) or key from get_project |
project_id * | string | |
min_wires | Fewest wires for this pair to draw as a bundle. | |
name | string | null | |
new_tag | string | |
promote | boolean | These wires really are one multi-core cable: they become conductors of a new W-tagged cable landing on the same terminals. |
show | Trunk or separate wires, in every view. | |
spec | string | With promote: the cable spec, e.g. "4×0.75 PUR" |
view | string | null | With view_show: a subsystem name or id to set it for, or null for the top level. |
view_show | Trunk or separate wires in that view; null goes back to `show`. |
update_cable Update cable
Change a cable by tag or id: retag, spec, gauge, length, outer diameter (od_mm), either end (the pin map resets to 1:1), replace the whole pin map (conductors), reset it (reset_pin_map), set the draw mode, or build it into a harness. Omitted fields stay the same.
| Parameter | Type | Description |
|---|---|---|
cable * | string | Cable tag (W1) or id |
project_id * | string | |
bundle | string | Deprecated: the old name of harness. |
conductors | array | Replaces the pin map |
draw | string | |
from | string | "TAG:CONNECTOR" |
gauge | string | Default gauge for its conductors; "" clears it. Wire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge. |
harness | string | Harness tag (H1) or name to build it into (text that names no harness makes one); "" takes it out. |
length | Cable length in the project's length unit; its conductors inherit it. null clears it. | |
new_tag | string | |
od_mm | Outer diameter in mm, checked against the gland it passes (assign_gland). null clears it. | |
reset_pin_map | boolean | |
spec | string | "" clears it |
to | string | "TAG:CONNECTOR" |
remove_cable Remove cable
Remove a cable and its conductors from a project (the connectors stay on their parts). A terminal-end cable's conductors stay as loose wires. This edits the project; it never deletes projects or Codex parts.
| Parameter | Type | Description |
|---|---|---|
cable * | string | Cable tag (W1) or id |
project_id * | string |
add_pid_items Add P&ID items
Add symbols to the project's P&ID (list_pid_symbols has the keys). With no tag an item gets the next free one (I-1, V-1, P-1, TK-1, E-1; actuators get none). With no position the auto-layout places it. size is for equipment only and snaps to the symbol's 10-unit steps. With component, the item links to that wiring component and the project's tag rule decides what it prints, so the result shows the printed tag.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
project_id * | string |
update_pid_items Update P&ID items
Change placed P&ID items without touching their lines: position, size, symbol, tag, location, props. Lines keep their spot through a resize or symbol change. A tag follows the project's tag rule: renaming an item linked under the "same" rule renames its wiring component too. A blank location unsets it, and so does a blank props field.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
project_id * | string |
add_process_lines Add process lines
Draw lines between P&ID items. from and to are "TAG:PORT" or "TAG" (tag or item id; list_pid_symbols has each symbol's ports, and a bare side like 90 on a side with several ports takes the one closest to the other end, so the line runs straight when a port lines up; with no positions, the one closest to the side's centre). kind defaults to process. Signal lines come from the wiring, so draw one only for something not wired yet. A line from an item to itself or an exact duplicate is skipped.
| Parameter | Type | Description |
|---|---|---|
lines * | array | |
project_id * | string |
link_instrument Link instrument
Link a P&ID item to a wiring component by tag, or clear the link with component null. The project's tag rule decides which tag the item prints, and the result shows it.
| Parameter | Type | Description |
|---|---|---|
component * | string | null | Wiring component tag, or null to clear the link |
item * | string | P&ID item tag or id |
project_id * | string |
remove_pid_items Remove P&ID items
Remove items from the P&ID, and every line touching them. Linked wiring components stay in the schematic.
| Parameter | Type | Description |
|---|---|---|
items * | array | Item tags or ids |
project_id * | string |
remove_process_lines Remove process lines
Remove lines from the P&ID by id (get_project lists them). Signal lines derived from the wiring aren't stored here; change the wiring to change them.
| Parameter | Type | Description |
|---|---|---|
lines * | array | Line ids |
project_id * | string |
add_pid_sheet Add P&ID sheet
Add a named print sheet to the P&ID: a frame of 1504 × 800 units with its top-left at x,y. An item prints on the sheet holding its centre, sheets print in the order listed, and items outside every sheet tile onto automatic sheets after them. The result lists what each sheet holds.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
project_id * | string | |
x * | number | |
y * | number |
update_pid_sheet Update P&ID sheet
Rename a placed P&ID sheet, move its frame (x,y is the top-left), or change where it prints (position, 1 = first). sheet is its id or name. The result lists what each sheet holds.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
sheet * | string | |
name | string | |
position | integer | Place in print order among the placed sheets |
x | number | |
y | number |
remove_pid_sheet Remove P&ID sheet
Remove a placed P&ID sheet by id or name. Its items stay on the drawing and move to the automatic sheets.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
sheet * | string |
list_pid_symbols List P&ID symbols
P&ID symbols by group: key, label, base size, whether it resizes, and its ports with their x,y offset from the item's centre at that size. A resized item's ports are listed when it is added.
validate_project Validate project
Check a project for fan-outs (too many wires on a terminal), signal clashes (different signal types on one net), incomplete rows, missing signals, and terminals/parts that don't exist. Also reports supply overloads, wires outside their terminal block's clamp wire range, and sizing findings (wire too small, below the minimum size, fuse too big, missing fuse rating, voltage drop over the limit) with suggested values from the project's sizing standard. Info notes list relays, I/O, e-stops, breakers, PSUs and motors whose Codex part has no function (or incomplete terminal roles) yet, so they draw…
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
explain_sizing Explain sizing
One wire's sizing breakdown — current, design current, gauge, ampacity and its derating, voltage drop, the fuse or breaker behind it, and the suggested gauge — the same numbers the wire's details show in Ohmstead. Find the wire by id, or by its ends like update_connection takes them.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
connection_id | string | Wire id from get_project. |
from | string | "TAG:TERMINAL", e.g. "PSU1:+24V" |
to | string | "TAG:TERMINAL", e.g. "K1:A1" |
fix_fanouts Fix fan-outs
Route every fan-out through terminal strips (one strip per electrical net, jumpered as needed), same as the app's "Fix all". via defaults to the project type (splices in a vehicle project, else strips). New strips use the project default block (update_project default_block); protective-earth fan-outs get the PE block (default_pe_block, else a generic PE block). terminal_type only applies to generic blocks. via "splice" routes device fan-outs through splices (SP1…, one per net) instead; over-full strip terminals always stay on their strip.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
terminal_type | string | |
via | string | Route fan-outs through terminal strips or splices; omit for the project type's default |
allow_multiple_wires Allow multiple wires on a terminal
Let one device terminal take several wires in this project (e.g. a two-level terminal), silencing its fan-out. allow=false reverts.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
terminal * | string | "TAG:TERMINAL" |
allow | boolean |
search_codex Search Codex
Search the parts library (built-in, community and yours) by name, part number, manufacturer, description or terminal name.
| Parameter | Type | Description |
|---|---|---|
category | string | One of: device, plc, psu, battery, relay, terminal, estop, io, hmi, breaker, motor, sensor, resistor, capacitor, inductor, diode, connector, splice, gland |
limit | integer | |
manufacturer | string | |
mine_only | boolean | |
query | string |
list_signal_types List signal types
Signal types (name, category, wire color, gauge, volts) available for terminals and wires.
save_signal_type Create or update a signal type
Create a signal type (what a wire carries and the color it draws in), or update one you own (pass signal_id). Comms types draw dashed and let a terminal take several wires without a fan-out. Free users' signal types are always public; Pro ones default to private. Built-in types are read-only.
| Parameter | Type | Description |
|---|---|---|
color * | string | Insulation color as hex, e.g. #7C3AED |
name * | string | |
awg | string | null | Default wire gauge, AWG: "18", "14", "1/0". null clears it. |
category | string | |
color_name | string | Readable color name, e.g. "Violet" or "White/Blue" |
dashed | boolean | Draw dashed (cables / comms). Default: true for comms |
mm2 | Default wire gauge as a cross-section in mm², e.g. 0.75. null clears it. Set either or both. | |
phases | 1 for DC and single-phase (the default), 3 for three-phase (√3 in the drop formula). null clears it (treated as 1). | |
public | boolean | |
signal_id | string | |
stripe_color | Tracer stripe as hex, or null for none | |
volts | Nominal voltage of this signal, e.g. 24 or 120; the voltage-drop check divides by it. null clears it (no drop check). |
list_manufacturers List manufacturers
Manufacturers available for Codex parts.
save_part Create or update Codex part
Create a Codex part, or update one you own (pass part_id). A part must be complete: name, manufacturer, part number, category, description and at least one terminal (accessory parts, block.kind accessory, need none). A part can say what it does (function) and what each terminal is to it (terminal role / channel); a part with a function must have every role it needs or the save is refused. Mixed parts (a PLC CPU with onboard DI and AI) list groups, each with its own function, and put terminals in them. Terminal blocks (category terminal) carry block data and per-terminal level/side; terminals c…
add_part_terminals Add terminals to a Codex part
Add terminals to a Codex part. Terminals can carry load_a / rated_a current data (datasheet values, not guesses) and a role / channel / group; the part's other data stays as it is, and a part with a function is checked again for the roles it needs. Your own parts, and team parts in a team where you're an editor or up, are changed in place; anything else is forked into your Codex first (into the team's Codex when project_id is a team project). Pass project_id to relink that project's components to the fork.
| Parameter | Type | Description |
|---|---|---|
part_id * | string | |
terminals * | array | |
project_id | string |
fork_part Fork Codex part
Copy a built-in or community part into your own Codex so you can edit it.
| Parameter | Type | Description |
|---|---|---|
part_id * | string |
import_wiring_list Import a design (wire list, BOM, or a drawing you read)
Import an existing design into a NEW Ohmstead project. Sources: rows you extracted yourself (read an EPLAN / SKYCAD / AutoCAD Electrical / SolidWorks Electrical PDF page by page: devices with tags + part numbers from the parts list, wires as TAG:TERMINAL pairs from the cross-references / wire numbers, strips with their terminal order from the terminal diagrams), and/or CSV text: wire_csv (connection / wire list export) and bom_csv (BOM / parts list). Devices are matched to the Codex by part number; unknown part numbers are PROPOSED, never created unless listed in accept_parts. BOM lines no wir…
| Parameter | Type | Description |
|---|---|---|
title * | string | |
accept_parts | array | Proposed part numbers to create in the user's Codex before importing (["all"] for every proposal whose manufacturer exists) |
accept_subsystems | array | Proposed subsystem names to apply (["all"] for every one). Devices left out stay at project level. |
apply | boolean | |
bom_csv | string | BOM / parts list CSV text (tag, part number, manufacturer, description, section) |
column_map | object | Override column names, e.g. {"fromTag": "Start device", "partNumber": "Order no"} |
devices | array | |
level | string | |
source | string | |
strips | array | Terminal order per strip from terminal diagrams |
team | string | Team or class name or id to create the project in. Omit for your personal workspace. |
wire_csv | string | Wire / connection list CSV text (EPLAN, AutoCAD Electrical, SolidWorks Electrical exports; columns found by name) |
wires | array |