Station 12 — How the engineering workflow runs SYNTHETIC DEMO DATA

One station, one pass through the work: drawing → register → database → risk ranking → report → deliverables → close the loop.

1Read the drawingAutoCAD / P&ID 2Build the registerExcel 3Model the dataSQL 4Rank the riskAnalysis 5Report itPower BI 6Hand it offGIS · DXF · Writing

1Read the as-built drawing

AutoCADDrawing literacy

Input: P&ID-12-001 and plot plan PLOT-12-002, both Rev C. Output: a list of every tagged item.

  • 25 tags: pumps, vessels, valves, instruments, piping, electrical
  • 3 line numbers, for example 8"-PL-1001-A1A = size · service · sequence · spec
  • 4 instrument loops (PT/PIT, FT, LT, TT)
  • Rev C cloud: PSV-2001 moved onto the relief header. Every revision changes the register.
"Everything starts at the drawing. If the register doesn't match the current revision, the analysis is wrong before it starts."

Files: station-12-pid.svg station-12-assets.dxf

Station 12 P&ID

2Build the asset register

ExcelData discipline

Each tag becomes one row with the same fields: what it is, which drawing and line it sits on, where it is, how critical it is, its condition, and when it is next due for inspection.

"One row per tag, with the drawing reference on every row, so anyone can trace a number back to the sheet it came from."

The planner's workbook has a frozen header, autofilter, and live COUNTIFS/SUMIF summary formulas.

Files: station-12-assets.xlsx data/assets.csv

tagtypedrawinglinecrit.cond.next insp.
PSV-2001ValveP&ID-12-001 C4"-PL-1003HighPoor2026-09-30
P-101APumpP&ID-12-001 C8"-PL-1001HighFair2026-09-12
MCC-01ElectricalPLOT-12-002 C—HighFair2026-07-10
L-1001PipingPLOT-12-002 C8"-PL-1001HighFair2026-09-01
… 21 more rows

3Model it in SQL

SQL

Three related tables. Every work order and every inspection points back to an asset tag:

  • assets (25): the register from step 2
  • inspections (75): inspection history
  • work_orders (14): maintenance, 12 of them still open

The view v_asset_risk calculates days overdue, open work orders, and the risk score. The rule lives in one place, so Excel, the dashboard, and the map always agree.

"I put the logic in a database view instead of spreadsheet formulas, so there is one version of the truth."

Files: schema.sql queries.sql station-12.db

-- Q4: Risk ranking
SELECT tag, type, criticality, condition,
       days_overdue, open_wos, risk_score
FROM   v_asset_risk
ORDER  BY risk_score DESC, days_overdue DESC;

-- Q5: Action list (assets + open work orders)
SELECT a.tag, a.risk_score, a.days_overdue,
       w.id AS wo_id, w.priority, w.status
FROM   v_asset_risk a
LEFT JOIN work_orders w
  ON w.asset_tag = a.tag
 AND w.status IN ('Open','In Progress')
WHERE  a.days_overdue > 0 OR w.id IS NOT NULL
ORDER  BY a.risk_score DESC;

4Rank the risk

AnalysisIntegrity thinking

Score (0–100) = criticality + condition + time overdue + open work orders.

  • Criticality: High 54 · Medium 36 · Low 18 (consequence)
  • Condition: Poor 25 · Fair 12 · Good 0 (likelihood)
  • Overdue: 0.25 per day, capped at 90 days (max +22.5)
  • Open work orders: +4 each (known open problems)
"Consequence carries the most weight on purpose. A moderate problem on a critical, overdue asset should outrank a worse problem on something minor."

Worked example: PSV-2001 (rank #1)

Criticality: High54
Condition: Poor25
62 days overdue × 0.2515.5
1 open work order × 44
Score (rounded down)98

Top of the action list

#TagScoreWhy
1PSV-200198Poor, 62 d overdue, set-pressure work order
2P-101A9480 d overdue, 2 open work orders (seal leak)
3MCC-0192144 d overdue, the longest
4L-10019291 d overdue, coating holiday at support 14
5V-20189Poor, 2 open work orders

5Report it so a manager can act

Power BI

The dashboard is laid out like a Power BI report page: headline numbers, a criticality × condition grid, a map, and the ranked action list. The data/ folder holds a star-schema export (one asset table, two fact tables) that loads directly into Power BI.

"The dashboard answers one question: where should the team spend the next hour?"

Files: index.html (dashboard) dim_assets fact_inspections fact_work_orders

25assets
9overdue inspections
12open work orders
8high risk (≥70)
Dashboard overview

6Hand off to each team in its own format

GISAutoCADTechnical writing
WhoGetsFile
Inspection plannerExcel register + summary.xlsx
Drafting / CADLayered drawing for markup.dxf
GIS / field crewAsset points with risk attributes.geojson
ManagementDashboard + 2-page summary.pdf
Next engineerMethod, assumptions, limitscase study
"Same data, five audiences. Change the drawing, rerun the build, and every file updates. Nothing gets retyped."

↻ Closing the loop: the step that makes it a workflow

  1. The field crew inspects PSV-2001 and closes its work order.
  2. The new inspection date and condition go into the register.
  3. If the field finds a mismatch, the drawing gets a new revision (Rev D).
  4. Rerun the build (python3 build.py), then check it (python3 validate.py: 20 checks).
  5. The ranking updates and the next asset moves to the top.

Honest caveat: the data is synthetic. A real version would pull in-line inspection (ILI) and cathodic protection (CP) surveys, SCADA, and the maintenance system (CMMS), and would use a proper consequence model.