Converting Hand-Drawn Floor Plan Sketches into Scaled 1/4"=1'-0" Blueprints and AutoCAD R12 .DXF in the Browser A developer has published a technical walkthrough of a browser-based pipeline that converts hand-drawn floor plan sketches into scaled 1/4"=1'-0" blueprints and layered AutoCAD R12 (AC1009) .DXF files. The approach uses single-wall scale calibration to derive an inches-per-pixel factor from one known dimension, a deterministic vertex-welding and orthogonal-snapping pass to close gaps of 2" to 4" and fix near-90-degree junctions, and vector export of sheets such as A-101, M-101 and E-101. Most remodelers, contractors, and homeowners still begin a room addition, kitchen layout, or basement finish the exact same way: sketching walls on graph paper with a tape measure in hand. Turning that rough paper drawing into a clean, scaled 1/4" = 1'-0" floor plan PDF or layered AutoCAD .DXF traditionally meant redrawing every single wall from scratch in desktop CAD software or waiting days for an outside drafting service. In this technical walkthrough, we cover the engineering pipeline behind browser-based AI Sketch-to-CAD : normalizing scanned or photographed room geometry, applying 1-wall real-world scale calibration , snapping orthogonal wall junctions to clean US imperial fractions, and exporting vector sheets A-101 , M-101 , E-101 alongside layered AutoCAD R12 AC1009 .DXF files. Try converting your own sketch or blueprint photo live 2 free AI scans/day, no subscription required : PlanCaliber Sketch-to-CAD Studio https://www.plancaliber.com/sketch-to-cad?utm source=devto&utm medium=article&utm campaign=article96 sketch to cad bofu . A smartphone photo of a napkin sketch or tape-measured grid has perspective skew and arbitrary pixel coordinates. Even if a vision pass extracts wall centerlines, doors, windows, and room labels cleanly, pixels have zero physical scale until anchored to at least one known field dimension. Instead of asking the user to re-enter every room width, 1-wall scale calibration computes a single uniform scale factor inchesPerPixel from any one known span for example, a measured 24'-0" exterior wall or a standard 36" entry door : export interface RawSegmentPx { x1: number; y1: number; x2: number; y2: number; thicknessIn: number; } export function calibrateSketchToInches segments: RawSegmentPx , referenceIndex: number, knownLengthInches: number, snapGridIn = 1 { const ref = segments referenceIndex ; const refPx = Math.hypot ref.x2 - ref.x1, ref.y2 - ref.y1 ; if refPx <= 0 || knownLengthInches <= 0 { throw new Error 'Reference wall length must be positive' ; } const inchesPerPx = knownLengthInches / refPx; const snap = v: number = Math.round v / snapGridIn snapGridIn; return segments.map seg = { x1: snap seg.x1 inchesPerPx , y1: snap seg.y1 inchesPerPx , x2: snap seg.x2 inchesPerPx , y2: snap seg.y2 inchesPerPx , thicknessIn: seg.thicknessIn } ; } Calibrating against a 28'-0" exterior perimeter wall produces far smaller rounding drift across interior partitions than calibrating against a 3'-0" closet wall. Once calibrated, every interior room dimension and ANSI Z765 Gross Living Area GLA readout updates deterministically in feet and inches 14'-6" x 12'-0" . Hand-drawn lines rarely meet at exact 90.0 degrees. Left unhealed, small 2" to 4" gaps break automated closed-polygon room area calculations and leave messy T-junction overlaps in exported .DXF files. A deterministic CAD healer runs three passes right after sketch import: 6" to 8" on rough sketches onto a single shared vertex ID so moving one wall stretches adjacent rooms cleanly. 4 degrees to exact 0 / 90 degrees while preserving intentional 45 -degree angled bays. export function weldVertices points: { id: string; x: number; y: number } , toleranceIn = 6 { const merged: { id: string; x: number; y: number } = ; const remap = new Map