Engineering

How to Vectorize a Blueprint or Technical Drawing

6 min read

A scanned technical drawing turns into vector lines when you convert it to SVG and pick Drawing under Image type. Every line comes back as a black shape on white paper, which prints crisply at any size and can be traced over in CAD.

The brick front of a house from an old drawing, first as the scan on yellowed tracing paper, then as fine vector outlines, then as the SVG in black lines on white

We took one sheet through the whole job. It is a design for a two-family house from around 1921, now in the Cooper Hewitt museum, drawn in ink on tracing paper that has gone the colour of straw. On the left is the garden front in brick, on the right both floor plans, with every room labelled with its size and an overall width of 13.36 m written under the ground floor. The house plans, part drawings and patent sheets people bring us look a lot like it: faded lines, yellow paper, small handwritten figures. We cut the museum's photo down to the drawn border and converted it at its own size.

Yellow paper and grey walls

Left at Regular image, the setting every conversion starts with, the SVG looks like the scan. The tracing paper becomes one straw-coloured shape the size of the sheet, plus a few hundred small patches of the same colour, and the grey wash the draughtsman laid inside the walls stays grey: 2,810 shapes in 36 colours, 1.5 MB. This is the one to keep as an archive copy that should look like the old sheet.

Set Image type to Drawing, which Lite and higher plans have among their settings, and the sheet comes back as black ink on white paper. It also emptied the walls, which we had not expected. The grey wash inside them is gone, and each wall is now two black lines with white between them, as if the plan had been inked and never washed. For a print or a tracing underlay that is usually what you want. If the solid walls matter to you, keep the Regular image file as well. The Drawing file has 5,855 shapes and is also 1.5 MB.

The sheet and its two conversions, nothing edited. Up close on an upstairs bedroom, Regular image keeps the yellow paper and the grey inside the walls; Drawing turns the paper white and leaves the walls as outlines.

What a threshold does to a dimension line

Most tools that turn a scan into black lines split it at one brightness level: pixels below it go black and everything else goes white. That is how potrace works, and Inkscape's Trace Bitmap in Brightness cutoff mode too. We gave potrace the same sheet with the level set halfway between black and white.

The walls and the figures came through. The dimension lines under the ground floor did not. The chain of 4.16, 5.04 and 4.16 and the overall 13.36 below it broke up into dashes and dots, because on this scan a thin ink line is paler than the middle grey. The numbers survived without the lines they measure. In the Drawing file both lines run unbroken from one extension line to the other, arrowheads included. potrace's file is lighter, 21,870 curve segments against 38,887 in ours, and it holds less of the drawing.

The dimensions under the ground floor plan. A single brightness cut-off loses the thin dimension lines and keeps the figures; Drawing keeps both.

Crumbs, cross-hatching and handwriting

Back in the Drawing file, a few marks on the sheet were never part of the design. Somebody's pencil note in the top left corner and the ghost of a rubbed-out stamp under the title came back as 23 small black crumbs, which Regular image had hidden in the colour of the paper. Each crumb is a separate shape, so dragging a selection over the empty corner and pressing Delete clears them.

The cross-hatched floors downstairs are the heaviest part of the file. The living room on the left holds 436 shapes, against 68 in the bedroom of the same size above it, because every small diamond of paper between the hatch lines is a separate white shape. Drawing kept the hatching in both directions. Regular image lost one of them and left a grey stain under the room's label.

The living room on the ground floor up close. Regular image loses one direction of the hatching; Drawing keeps both.

The labels that sit on the hatching are the weak spot. In the Drawing file "Surf. 13.44" runs into the lines around it and takes some effort to read. Check figures like these against the scan before you rely on them.

Putting the plan to scale in CAD

The SVG does not know how big the house is. Its units are the scan's pixels, and the overall dimension of 13.36 m measures 455 units in the file. One unit is therefore 13,360 ÷ 455 = 29.4 mm of real house, and scaling the whole drawing by 29.4 gives millimetres. In AutoCAD, SCALE with its Reference option does this in one go: pick the two ends of the dimension and type 13360.

The ground floor plan in the Drawing file. Its 13.36 m dimension runs 455 units, so the drawing is scaled by 29.4 to get millimetres.

Your program may report a different length after import. This SVG gives its size in points, so Inkscape opens the sheet 602 mm wide and shows the same dimension as 160.5 mm. The sum stays the same: divide what the plan says by what the program measures, then check a second dimension running the other way in case the scan was not quite square.

Fusion 360 and FreeCAD import SVG directly. AutoCAD, LibreCAD and most CAM programs want DXF, so load the SVG into Inkscape and write a DXF copy with Save As. The curved bay fronts arrive as curve segments rather than CAD arcs, and the room labels as outlines of letters rather than text. Put the trace on a locked layer as an underlay and draw the parametric model over it.

The sheet also says "Echelle 0,01 par m", one centimetre per metre, so the 13.36 m dimension is 133.6 mm of paper and 455 pixels of scan. That is about 86 pixels per inch. It is a coarse scan, with the thinnest lines one or two pixels wide, which is why the threshold lost them.

If the plan goes to a laser or a plotter

A laser engraving this plan into a board fills in the black shapes, so the Drawing file can go to it as it is. A pen plotter, a drag engraver or a laser set to score runs along paths instead, and on a filled file it would trace both edges of every line. For those there is the Centerline trace style, one stroke down the middle of each drawn line. Image type does not apply to it, and it suits a schematic or the outline of a part better than a hatched house plan.

Your own sheet

Uploads take PNG, JPEG, WebP or BMP files of up to 50 MB, and a scan stuck inside a PDF needs exporting as a PNG page first. Drawing stops at about 2.5 MP: a bigger scan comes back as Regular image even with Drawing chosen. Our sheet, trimmed to its border, came to 1.8 MP. Scanned at 300 dpi it would be about 22, so a sharp scan of a big sheet goes in one view at a time: the front, then each plan.

Without an account, the home-page demo converts your scan and shows what came out as an image, and if the sheet reads as line art it first asks whether it is a drawing. The SVG itself, with Drawing and Centerline, needs a subscription, Lite or higher; Pro and above can also save the conversion as PDF. A finished file stays in your workspace queue and dashboard for a day unless you set it to be kept longer.

Before the file goes to a builder or a machine, compare the figures you rely on with the scan, starting with the ones on hatching.

Related guides