Measure your drawing set before you pilot an AI drawing reader An engineer published Python scripts that let construction teams audit their drawing sets before piloting an AI drawing reader, using PyMuPDF to detect whether PDFs carry a text layer and a regex pass to flag duplicate sheet numbers across revisions. The scripts surface two common causes of failed pilots: scanned sheets that require OCR and superseded revisions that inflate quantity extraction. The engineer recommends sampling around thirty sheets across disciplines and tuning the text-layer character cutoff by hand. Every AI drawing reader demo uses a clean plan exported from CAD. Your project folder is different. It has scans, superseded sheets and a symbol legend somebody invented years ago. This post is the engineer's version of our guide on AI for construction drawings https://dev-station.tech/ai-construction-drawings/ . It turns the first two checks from that guide into scripts you can run before any vendor sees your files. A vector PDF still carries text as text and lines as objects with coordinates. A scanned sheet is an image, so every word has to come back through OCR. A quick way to sort them is to ask the PDF for its text layer. python import fitz PyMuPDF from pathlib import Path def has text layer pdf path, min chars=200 : with fitz.open pdf path as doc: page = doc 0 return len page.get text .strip = min chars sheets = list Path "drawings" .glob " .pdf" vector = p for p in sheets if has text layer p print f"{len vector } of {len sheets } sheets have a text layer" The min chars cut-off is a guess you should tune. A title block alone can carry some text, so open a few borderline sheets by hand. Sample around thirty sheets across disciplines. If most come back as images, budget for a recovery step and ignore any quoted vendor accuracy. If three revisions of M-101 sit side by side, a quantity extraction counts all three. That looks like a software bug. It is a file management problem, and a few lines find it. python import re from collections import defaultdict pattern = re.compile r"^ ?P