P&ID: Insert Symbol
pid_symbol_insertInsert P&ID catalogue symbols as real AutoCAD blocks with TAG attributes and named WCS ports, then connect them using pid_line_draw.
Instructions
Insert a catalogue symbol as a real block with TAG attributes and named ports.
Defines the block on first use (defined), creates a missing family layer
from the P&ID layer set (layers_created), writes an ACADMCP_PID payload
so readers without the catalogue still see the ports, and returns every
port in WCS — connect them with pid_line_draw. An invalid ISA-5.1 tag is
written and reported in tag_warnings; drawing_critique flags it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Insertion X (WCS) | |
| y | Yes | Insertion Y (WCS) | |
| tag | No | Tag: equipment P-101, valve HV-101, instrument FIC-101 (split into FUNC/LOOP) | |
| desc | No | Description attribute | |
| fail | No | Actuated valves: FO | FC | FL | |
| link | No | Off-page connector link id shared by both ends | |
| type | No | Instruments: discrete | dcs | computer | plc | |
| layer | No | Override the family layer | |
| scale | No | Uniform scale | |
| shape | No | Reducer: concentric | eccentric | |
| params | No | Parametric vessels: {width, height, nozzles: [{name, side, fraction}], roof, trays, jacketed} | |
| symbol | Yes | Catalogue symbol name, e.g. gate, centrifugal_pump, vertical_vessel, instrument, offpage | |
| actuator | No | Valves: none | diaphragm | piston | motor | solenoid | hand | |
| location | No | Instruments: field | primary | auxiliary | primary_rear | auxiliary_rear | |
| rotation | No | Rotation in degrees; 0 = flow left to right | |
| direction | No | Off-page connector: in | out |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||