# How to Check Closed Contours in a DXF

Use Select region in CADProps to count closed DXF contours, find open paths and check the combined perimeter of an outer profile and its holes.

A profile can look closed at fit-to-page zoom even when a segment ends short or a separate line sits inside the outline. Open the file in the [CADProps DWG and DXF viewer](https://www.cadprops.com/tools/dwg-viewer/index.md), switch to the relevant layout and choose **Select region**. Drag a box that encloses the complete geometry you want to check.

## Check the outline and the hole

1. Download the [DXF contour sample](https://www.cadprops.com/assets/evidence/seo-2026-11-24/profile-contours.dxf), open it in the viewer and select the **Model** layout. The file has a 60 × 30 mm outline drawn with four separate lines, a 10 mm diameter circle and a short line on **OPEN_PATH**.
2. In **Select region**, drag around the whole profile. The result shows **2 closed contours**, **1 open path**, **1 outer ring** and **1 inner ring**.
3. Read **Total perimeter**. The rectangle contributes 180 mm and the circle contributes about 31.416 mm, for **211.416 mm** together. The open line does not contribute to that total.

<figure class="workflow-evidence"><img src="/assets/evidence/seo-2026-11-24/dxf-closed-contours-1440.webp" alt="Schematic of a DXF region enclosing a closed rectangle, a circular hole and a short open line, with a combined closed perimeter of 211.416 millimetres" width="1440" height="680" loading="lazy"><figcaption>Schematic of the sample and its verified contour counts. The dashed box encloses the entire geometry.</figcaption></figure>

## When the counts look wrong

Close the region result, open **Layers** and hide **OPEN_PATH**. Select the same region again. The open-path count drops to zero and the perimeter stays at 211.416 mm. You can do the same with layers in your drawing to isolate the source of an unexpected result.

If the selection cuts through the boundary or a layer is hidden, the affected entities may be left out. Redraw the box with a margin and confirm the visible layers. An unclassified result can indicate branching or unsupported geometry. If **Select region** is unavailable, try the original editable DXF from the sender. For unitless files, [set the scale from a known length](https://www.cadprops.com/guides/dxf-units-wrong-scale/index.md) before comparing a physical perimeter. Verify the intended geometry and the toolpath separately in CAM before cutting.

## Related reading

- [Convert DWG or DXF to PDF, SVG or DXF Online](https://www.cadprops.com/guides/convert-dwg-to-pdf-online/index.md)
- [DWG Layers Missing or Not Showing? Check Visibility Before Converting](https://www.cadprops.com/guides/dwg-layers-not-showing/index.md)
- [DWG vs DXF: Which Drawing Format Should You Send?](https://www.cadprops.com/guides/dwg-vs-dxf/index.md)
- [DXF Scale Wrong? Check Drawing Units Before Resizing](https://www.cadprops.com/guides/dxf-units-wrong-scale/index.md)
- [Open DWG or DXF Files Without AutoCAD](https://www.cadprops.com/guides/open-dwg-dxf-without-autocad/index.md)
- [PLT and HPGL Files: What They Are and How to Open Them Online](https://www.cadprops.com/guides/open-plt-hpgl-file-online/index.md)

Original article: https://www.cadprops.com/guides/check-closed-dxf-contours/

HTML page: https://www.cadprops.com/guides/check-closed-dxf-contours/
