ZMPTYWorkPermitting
Permit drawing proofreading tools
Python tools that proofread fiber-optic permit drawings against a QC checklist, from the PDF or the AutoCAD DWG. 500+ sets reviewed; each review cut from 1 to 4 hours to under one.
The problem
Every permit drawing set, often dozens of sheets, had to be proofread by hand against a QC checklist before it went to a road authority. Missing sheets, sheets reused from another job, footage that didn’t add up and typos copied onto every sheet were easy to miss. A miss could mean a revision request and a resubmittal.
What it does
- Answers the QC checklist item by item as PASS, FAIL or MANUAL in an Excel workbook, with the page number for every finding. Anything it can’t judge is left visibly unjudged, never shown as passed.
- Catches missing, duplicated or out-of-order sheets against the set’s own sheet index, and match lines that point at sheets not in the set.
- Cross-checks the project code and revision across the file name, title block, drawing stamp and every sheet, which catches a sheet reused from another job.
- Ties footage three ways: the road list boxes, the conduit callouts on the plans and the bill of materials.
- Checks cover depths and route placement against each road authority’s requirements, including distance from the edge of pavement and railroad crossing footage and angle.
- Spell-checks by cross-reference: a typo is the rare spelling of a word the set spells correctly many times elsewhere, so drafting jargon doesn’t raise false alarms.
- Never auto-corrects. Every check reports, and the engineer decides.
How it’s built
- PDF tool: reads only the PDF’s text layer, rebuilding rotated and wrapped labels character by character. A pipeline of extraction, 26 checks, a checklist answerer and a report writer, with pages read in parallel. A 37-sheet set reviews in about 30 to 35 seconds.
- DWG reader: a 340-line C# reader built on the open-source ACadSharp library dumps every label, block, line, layout and viewport to JSON. Python turns it into the same page model. It places each label the way AutoCAD prints it (justification, real TrueType widths, wrapping, viewport clipping), and it measures the drawn conduit route against the printed footage.
- Fixed the library: patched 2 bugs in the open-source reader that silently dropped road list boxes and long notes, and verified the fix against a second reader.
- Rules as data: counties, vocabulary and authority-specific depth rules live in one JSON file, so a new market needs data, not code.
- Tested by breaking it: a fault-injection suite builds a synthetic drawing set, breaks one thing at a time and checks the right finding comes back. 493 checks for the PDF tool and 87 for the DWG reader. About 26,000 lines of Python across both.
Result
- 500+ permit drawing sets reviewed so far.
- A full review is down from 1 to 4 hours by hand to under an hour. The automated pass takes about 30 seconds; the rest is confirming its findings.
- The DWG reader matched the PDF review finding for finding on its first test set, in about 3 seconds instead of 34. It also confirmed every footage tie on 45 real drawings by measuring the drawn route.
The parts
PDF proofreading tool
Reads the drawing set as a PDF and fills the QC checklist workbook. Also extracts pole data for aerial jobs and files each drawing into its job folder by reading its project code. In daily use since August 2026.
AutoCAD DWG reader
Runs the same review straight from the DWG and measures the drawn route on each sheet. It lists findings that appear only in the PDF review or only in the DWG review. It only reads drawings and never changes them. 61 DWG reviews so far.
Pole and road extractor (retired)
The first tool: turned a drawing set’s pole callouts and fiber-bearing roads into a checked, four-tab workbook in seconds. Profiling showed PDF decoding was 98.5% of the runtime, so parsing pages in parallel cut a 15-page set from 37.9 s to 6.5 s. Its pole extraction now lives in the proofreading tool and its road parser in the road jurisdiction scrubber.


