Markdown copy of https://cadquill.com/add-dimensions-dxf/ (a CADQuill guide, language: en), from cadquill.com.

# Add dimensions to a DWG or DXF

A hole without its diameter, a part without its overall length: ask for the dimension in plain words and check it before you apply it.

[Open a drawing](https://cadquill.com/app/)

## How

1. Open the drawing in the [editor](https://cadquill.com/app/).
2. Click a line or circle of the part, or mark the area, and ask the assistant, in your language: *"Add the diameter of this hole"* or *"Dimension the overall width and height of the plate."*
3. The new dimensions show in red. Apply or discard, and undo whenever you like.
4. Download the drawing as DWG or DXF.

## Without the assistant: measure, then add

Click **Measure** in the toolbar and pick two points, a circle or two lines. Under the value, **Add as dimension** (or **Add radius** and **Add diameter** for a circle) shows the dimension in red: **Apply** keeps it. It uses no AI request.

## What you can ask for

- **Linear** (horizontal or vertical) and **aligned** dimensions between two points.
- **Radius** and **diameter** of circles and arcs.
- **Angles** between two lines.
- **A row of dimensions** along several features at once.

New dimensions look like the ones already in the drawing: they get the dimension style and the layer most of its dimensions use. They are real dimension entities, so CAD programs can still edit them.

## With a script

The same, to run on a set of drawings, with the AutoCAD-style commands of [CADCraft](https://github.com/storytold/cadcraft)'s engine:

```
const hole = ops.select(doc, { type: "CIRCLE" })[0];
await ops.cad(doc, "dimdiameter", { handle: hole.handle, at: [200, 150] });
await ops.cad(doc, "dimlinear", { p1: [0, 0], p2: [280, 0], at: [140, -40] });
```

## Questions

**Which dimension style is used?**

The one most of the drawing's dimensions use, so the new ones match. A drawing without dimensions uses its current style.

**Does it work on old R12 DXF files?**

Yes. The dimension is written the way R12 files store it.

**Is my drawing uploaded?**

No. It is changed in your browser.

## More guides

- [Open a DWG file online, without AutoCAD](https://cadquill.com/dwg-viewer/)
- [A free online CAD, in your browser](https://cadquill.com/free-online-cad/)
- [Convert DWG to DXF online](https://cadquill.com/dwg-to-dxf/)
- [Convert DWG to PDF online](https://cadquill.com/dwg-to-pdf/)
- [Convert DXF to DWG online](https://cadquill.com/dxf-to-dwg/)
- [Edit a DWG without AutoCAD](https://cadquill.com/edit-dwg-without-autocad/)
- [A free DXF editor, in your browser](https://cadquill.com/dxf-editor/)
- [Open and edit a DXF file online](https://cadquill.com/dxf-viewer/)
- [Convert a DXF or DWG from inches to millimetres](https://cadquill.com/dxf-inches-to-mm/)
- [Change a text in a DWG or DXF](https://cadquill.com/change-text-in-dwg/)
- [Fix overlapping texts and dimensions in a DWG or DXF](https://cadquill.com/fix-overlapping-text-dxf/)
- [Delete duplicate lines in a DXF or DWG](https://cadquill.com/delete-duplicate-lines-dxf/)
- [Prepare a DXF for laser cutting](https://cadquill.com/prepare-dxf-for-laser-cutting/)
- [AutoCAD alternatives for DWG files: how CADQuill compares](https://cadquill.com/autocad-alternatives-browser/)
- [Text to DXF and DWG: describe a drawing, get a CAD file](https://cadquill.com/text-to-dxf/)
- [Put one part in front of another, without masks](https://cadquill.com/remove-hidden-lines-dwg/)
- [Open a DWG on a Mac, a Chromebook, Linux or an iPad](https://cadquill.com/open-dwg-on-mac/)
- [Convert DXF to PDF online](https://cadquill.com/dxf-to-pdf/)
- [Convert DXF or DWG to SVG online](https://cadquill.com/dxf-to-svg/)
- [Convert DWG or DXF to PNG online](https://cadquill.com/dwg-to-png/)
- [Convert DWG or DXF to STL, OBJ, GLB or STEP](https://cadquill.com/dwg-to-stl/)
- [Convert to DXF R12 online](https://cadquill.com/dxf-r12-converter/)
- [Save a drawing for an older AutoCAD](https://cadquill.com/dwg-to-older-version/)
- [Measure a DWG or DXF online](https://cadquill.com/measure-dwg-online/)
- [An AI assistant for DWG and DXF drawings](https://cadquill.com/ai-assistant-dwg/)
- [Text to 3D CAD: describe a part, get a STEP file](https://cadquill.com/text-to-step/)
- [Sketch to 3D model](https://cadquill.com/sketch-to-3d-model/)
- [Free 3D CAD online](https://cadquill.com/free-3d-cad-online/)
- [STEP viewer online, free](https://cadquill.com/step-viewer/)
- [STL viewer online, free](https://cadquill.com/stl-viewer/)
- [3MF viewer online, free](https://cadquill.com/3mf-viewer/)
- [OBJ viewer online, free](https://cadquill.com/obj-viewer/)
- [Convert STL to STEP online](https://cadquill.com/stl-to-step/)
- [Convert STEP to STL online](https://cadquill.com/step-to-stl/)
- [Convert OBJ to STL online](https://cadquill.com/obj-to-stl/)
- [Convert 3MF to STL online](https://cadquill.com/3mf-to-stl/)
- [Convert STL to OBJ online](https://cadquill.com/stl-to-obj/)
- [Convert STEP to OBJ online](https://cadquill.com/step-to-obj/)
- [Convert OBJ to STEP online](https://cadquill.com/obj-to-step/)
- [Convert STL to 3MF online](https://cadquill.com/stl-to-3mf/)
- [Convert STEP to 3MF online](https://cadquill.com/step-to-3mf/)
- [PDF to 3D model](https://cadquill.com/pdf-to-3d-model/)
- [AI CAD generator](https://cadquill.com/ai-cad-generator/)
- [Examples: one message, and what came out](https://cadquill.com/examples/)

Last changed on 2026-11-18.
