Skip to content
Testaroo
dxf16.2 KB

DXF: CAD Cube (line geometry)

A 10 mm cube drawn as 12 DXF LINE entities: the AutoCAD interchange format, written with ezdxf. For testing DXF parsers and CAD conversion.

Preview, first 50 linesdxf
  0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1024
  9
$ACADMAINTVER
 70
6
  9
$DWGCODEPAGE
  3
ANSI_1252
  9
$LASTSAVEDBY
  1
ezdxf
  9
$INSBASE
 10
0.0
 20
0.0
 30
0.0
  9
$EXTMIN
 10
1e+20
 20
1e+20
 30
1e+20
  9
$EXTMAX
 10
-1e+20
 20
-1e+20
 30
-1e+20
  9
$LIMMIN
 10
0.0
 20
0.0
… 3333 lines total: download for the full file.

Specifications

Format
DXF R2010 (ezdxf)
Geometry
12 LINE entities (cube edges)
Units
mm
Solid
10 mm cube wireframe

Testing contract

Expected to pass
Scenario
Exercise DXF: CAD Cube (line geometry) in its cad workflow. A 10 mm cube drawn as 12 DXF LINE entities: the AutoCAD interchange format, written with ezdxf.
Expected result
3332 text lines, decoded as UTF-8; first nonempty line is '0'. Declared feature checks: geometry=12 LINE entities (cube edges); units=mm; solid=10 mm cube wireframe.

What is a .dxf file?

DXF (Drawing Exchange Format) is an Autodesk CAD interchange format, typically ASCII, that represents 2D and 3D drawing entities like lines, arcs, layers, and text. It was created to move drawings between CAD programs and is broadly supported. It stores vector CAD geometry rather than a rendered image.

How to use this file

Use an example DXF to test CAD entity and layer parsing, 2D drawing import, and converters between DXF and other vector or CAD formats.

How to use this file for testing

“DXF: CAD Cube (line geometry)” is a deterministic Testaroo fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: DXF R2010 (ezdxf). Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

3D and CAD fixtures carry one small, documented solid or scene. Convert and inspect against the known geometry, units, and structure; format twins let you diff interchange fidelity, and the 3D viewer previews the actual mesh.

Generated by generation/models.py. Free for any use, no attribution required, license.