How to trace a photo of a part into a DXF for reverse engineering
Trace a photo of a part into a DXF file for reverse engineering, with the steps to follow, the tools that can help and the mistakes to avoid.
TexHouse is published by the makers of LunarWerx 3D Print and VectorMagik, which are compared here alongside other tools.
Photograph the part flat with a measured scale reference, trace its outline into vector shapes, clean up the curves, scale the drawing, and export it as DXF for checking in CAD. VectorMagik can save the result as DXF [1].
| Option | What it does | Fee |
|---|---|---|
| VectorMagik | Traces a picture into vector shapes and can save the result as DXF among other formats [1] | Free for everyone; business use needs a licence [1] |
| Other tools | Check each tool's own page for what it does | Fee not published |
What you need before you start
Have the photo ready before you trace anything. Use a straight-on shot with the part lying flat, a plain background, and a ruler or caliper placed in the same plane as the part, so you can scale the drawing later. Keep the lighting even so the edges show clearly and no hard shadows fall across the outline. If you can, take a close-up of any feature you need to match, such as a hole or a curved edge.
You also need a way to turn the photo into lines a CAD program can read. A tracing tool that exports DXF is the usual route, so confirm that the tool you pick can save DXF before you start. Have a CAD program ready to open and check the file, because a traced outline often needs cleaning and dimensioning. Finally, note one known length on the real part, so you can check the traced size against it.
Step by step
- Photograph the part flat. Place it on a plain surface with a ruler or caliper in the same plane, and shoot straight down so the outline is not skewed.
- Crop and straighten the image so the edges line up with the frame, and check that the scale reference is still visible.
- Trace the outline into vector shapes. Use a tool that turns the photo into curves rather than pixels, so the edges stay sharp when you scale them.
- Remove what you do not need. Delete the background and any shadow shapes, and keep the outline of the part and any holes you need.
- Simplify the curves so the shape has smooth edges without hundreds of tiny segments.
- Clean up corners and points where the trace wandered. Move or delete stray points, and round only the corners that are rounded on the real part.
- Set the scale. Measure the known length in the drawing, then scale the whole shape so that length matches the real part.
- Export as DXF and open the file in your CAD program. Check the dimensions against two or three measurements on the physical part.
- Note any holes, fillets or features the trace missed, and add them by hand in CAD before you use the drawing for a model or a fit check.
Tools that can do it
Several tools can produce a DXF from a photo. VectorMagik is one option, and it is described here from its own approved facts.
VectorMagik is made by the team that publishes this site, TexHouse. It traces a picture into vector shapes using its own engine. [1] You can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG. [1] A tolerance slider merges neighbouring curve pieces, and Auto picks the largest tolerance that keeps the picture. [1] After converting, you can move or delete curve nodes and round individual corners. [1] You can click shapes to delete them, such as a background, or merge two shades into one. [1] To check the trace against the photo, you can compare the vector with the bitmap side by side, or flip between them with B and V keys. [1]
A command-line version does the same work without a window and lets an AI assistant trace pictures on your computer. [1] A browser version runs the same engine in the web browser. [1]
Other tools are not described here, because this page has no sourced facts about them. Check each tool's own page for its export formats, fees and platforms before you choose.
Common mistakes to avoid
Photographing the part at an angle. A tilted photo distorts the outline, and no scaling fixes a skewed shape. Shoot straight down with the camera parallel to the surface.
Skipping the scale reference. Without a known length in the photo, the drawing has no real size. Measure a feature on the physical part and check it against the DXF.
Trusting the first trace. Every trace needs a review. Compare the vector against the photo, and fix stray points and missed holes before you export.
Simplifying too far. Heavy simplification smooths away small features such as fillets and small holes. Lower the simplification until the features you need come back, then check again.
Using a shadowed photo. Shadows read as part of the outline and add false edges. Use even light and remove background shapes before you export.
Frequently asked questions
How do you trace a photo of a part into a DXF?
Photograph the part flat with a scale reference in the same plane, then trace the outline into vector shapes. Clean up the curves and corners, delete the background, and set the scale using a measured length from the real part. Export the result as DXF, open it in a CAD program, and check the dimensions against two or three measurements before you use the drawing for anything that has to fit.
Can VectorMagik export a traced part as DXF?
Yes. VectorMagik can save the result as SVG, PDF, EPS, AI, DXF, EMF or PNG [1]. You can move or delete curve nodes and round individual corners after converting [1], so the outline can be cleaned before you export. Then check the exported DXF in your CAD program against a measured dimension of the real part.
Is VectorMagik free for reverse engineering work?
VectorMagik is free for everyone [1]. It is licensed under PolyForm Noncommercial 1.0.0 [1], and business use needs a separate licence. Read the licence text itself before you use the output in paid or commercial work, because this page gives only a summary.
Which computers can run VectorMagik?
Downloads exist for Windows x64, macOS (Apple Silicon and Intel), Linux x64, plus a browser version [1]. It installs with a Windows installer, a portable zip, a macOS zip, a Debian/Ubuntu .deb or a Linux tar.gz, all from GitHub releases [1]. A browser version runs in the web browser using the same engine [1].
Can VectorMagik delete a background from a traced part?
Yes. You can click shapes to delete them, such as a background [1]. A tolerance slider merges neighbouring curve pieces, and Auto picks the largest tolerance that keeps the picture [1]. You can also limit the result to between 1 and 64 colours [1]. Compare the vector with the bitmap side by side to check that the outline still matches the part [1].
Free for personal and non-commercial use; business use needs a licence (PolyForm Noncommercial 1.0.0). [1]
Try VectorMagikSources
Related comparisons
- Adding alignment pegs to wearable armor parts
- How to Add Bridges for Metal Wall Art Cutouts
- How to add clean outlines to names and ornament shapes
- How to Add Internal Pegs for Strong Cosplay Weapon Joints
- How to add magnet holes to modular wargame terrain pieces
- How to Add Snap-Fit Lid Geometry to an Enclosure
- Adjust basic 3D printer settings in 2026
- How to adjust infill to change buoyancy for fishing lure makers
- Adjust Layer Height for Easier Sanding in 2026
- Adjust Wall Thickness for Load-Bearing Parts in 2026