Online DXF Sketcher & Editor: Draw 2D Parts
Draw a flat part, type exact sizes, round the corners and download a clean DXF for your laser, plasma, waterjet or router. Closed outlines are joined into closed polylines. Everything runs in your browser.
Part size
Properties
Layers
Units, grid and snaps
Export and import
Keyboard shortcuts
x,y absolute, @dx,dy relative, @length<angle polar. Sums such as 25.4*2 work. Tab moves between boxes.How the DXF Sketcher Works
The sketcher is a small 2D CAD program for flat parts. You draw with lines, arcs, circles, slots and polygons, round the corners with fillets, and download a DXF that a laser, plasma, waterjet or router CAM program can read.
All geometry is stored in real units (mm or inches), not screen pixels. Corners, tangent points and intersections are worked out exactly with geometry formulas, so a 100 mm line is 100 mm in the file. Nothing is uploaded: the drawing lives in your browser and is saved there automatically.
The Method
30,15is the absolute point X 30, Y 15.@40,0is 40 to the right of the last point.@50<30is 50 long at 30° (counter-clockwise from +X).
Worked Example
- Units mm. Press R, type
0,0and Enter for the first corner. Type100, Tab,60, Enter. You now have four lines. - Press F, type
10in the Radius box and Enter. Click the two lines at each corner in turn. Each straight edge shrinks by 10 at both ends: the long edges become 80 and the short ones 40. - Make HOLES the current layer. Press C, type
10,10and Enter for the centre, then Tab to Diameter, type8and Enter. Repeat at90,10,90,50and10,50(or select the hole and use Copy with@80,0). - The size box shows 100 × 60 mm, 1 closed outline and no open ends. Click DXF.
- The file holds one closed POLYLINE on layer OUTLINE with 8 vertices, four of them with a bulge of 0.414214 (90° arcs), and four CIRCLEs of radius 4 on layer HOLES at (10, 10), (90, 10), (90, 50) and (10, 50).
The outline length is 2 × 80 + 2 × 40 + 2π × 10 = 240 + 62.832 = 302.832 mm of cut. Each hole sits on the centre of its corner radius, leaving 6 mm of material all round. We drew this exact part with the sketcher's own code and checked the DXF with the ezdxf library: no audit errors, and every line, arc and circle reads back within 0.000001 mm.
Tips for Laser, Plasma, Waterjet and Router Files
- Closed outlines. CAM programs cut inside and outside correctly only when each shape is a closed loop. The size box counts closed outlines and shows open ends as red circles. Snap to ends when you draw so lines really meet.
- No duplicate lines. A line drawn twice is cut twice, which burns the edge and wastes time. If the size box reports duplicates, click Delete duplicates.
- Kerf. Draw the finished part size. The cutting program offsets the path by half the kerf, outside the outline and inside the holes. Only offset the drawing yourself if your machine has no kerf compensation, and then by half the kerf (for example 0.75 mm for a 1.5 mm plasma kerf). Kerf widths vary with the machine, nozzle and material, so measure a test cut.
- Small holes and inside corners. As a rough guide, plasma holes smaller than the plate thickness come out poorly; drill them instead. On a router, an inside corner cannot be smaller than the cutter radius.
- Construction lines. Put centre lines and layout lines on CONSTRUCTION. They help you snap but stay out of the DXF unless you tick the box.
- Related tools. Work out hole positions with the Bolt Circle Calculator, nest parts with the Sheet Cut Optimizer, and check the finished program in the G-Code Simulator.
Frequently Asked Questions
Check the DXF in your CAM program and measure a test cut before cutting good material. Kerf and small-hole figures above are rough guides, not machine data.