P&ID: Instrument Index
pid_instrument_indexExtracts every P&ID instrument bubble with its ISA-5.1 tag reading and connected tags, handles, or signals from the drawing graph, optionally exporting rows to a CSV without modifying the drawing.
Instructions
Every instrument bubble with its ISA-5.1 reading and what it connects to.
Rows come from pid_graph, never from typed-in lists; the drawing is not
modified. csv_path is the only file this tool writes (so it is not
annotated read-only); it is validated before the drawing is read, and an
empty path, a directory or a missing parent folder is refused.
signal_lines counts ISA-5.1 signal lines only; connected_to names a
tag, a handle, or the lines a junction on the instrument's line joins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | current_space | all | current_space |
| csv_path | No | Write the rows as CSV here (inside ALLOWED_PATHS); text that starts like a formula (= + - @ tab CR) is prefixed with ' so a spreadsheet never runs it | |
| tolerance | No | Endpoint-to-port snap distance (mm) | |
| label_search | No | How far to look for tag/line-number text (mm) | |
| include_foreign | No | Classify INSERTs not placed by this server (confidence < 1) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||