Markdown copy of https://cadquill.com/remove-hidden-lines-dwg/ (a CADQuill guide, language: en), from cadquill.com.

# Put one part in front of another, without masks

Open the drawing in the CADQuill editor and ask the assistant, for example: put the wheel in front of the frame. It cuts away the lines of the part behind where the front part covers them, so nothing white is laid over the drawing.

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

## How

1. Open the DWG or DXF in the [editor](https://cadquill.com/app/).
2. Click the part that should be in front (or mark its area), and ask: *"Put this in front of the frame"* or *"Hide the lines of the frame behind the wheel."*
3. The lines it cuts or removes show in the preview: apply or discard. Undo works at any time.
4. Download the drawing as DWG or DXF.

## What it does

- It finds the outline of the front part from its continuous lines (centre, hidden and dashed lines do not count as outline).
- Lines, arcs, circles, polylines, ellipses and splines of the part behind that cross that outline are cut exactly on it; only the pieces outside are kept. Entities wholly hidden are deleted.
- When the part behind is a block, the block definition is edited in its own coordinates; a block used more than once gets a copy for this reference, so the other references stay as they were.
- Texts, dimensions and hatches are never cut: when partly hidden they stay as they are, and the assistant says how many.

Asked twice in the same place, it changes nothing the second time.

## Cut or mask?

Cutting is the usual way on line drawings and on drawings that go to a laser or a plotter: what is hidden is gone. The other way covers what is behind with masks (WIPEOUT): every line is kept, but white areas lie over the drawing, which some programs and printers show badly. Ask for masks when you want to keep the part behind complete, for example to move the front part again later.

With a script, on a set of drawings:

```
ops.trimBehind(doc, { front: "2F1" });
```

Openings in the front part's outline narrower than a small gap count as closed, and details finer than its working grid count as covered: look at the result before you apply it.

## Questions

**Are the hidden lines deleted or only hidden?**

Deleted or cut: the file then holds only the visible pieces. Keep the original if you may need them again.

**Does it work inside blocks?**

Yes. The block definition is edited in its own coordinates; a block drawn more than once gets its own copy first.

**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/)
- [Add dimensions to a DWG or DXF](https://cadquill.com/add-dimensions-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/)
- [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-17.
