Rulingpen

Supported versions and entities

DWG

Rulingpen reads DWG files from AutoCAD Release 1.x to the AutoCAD 2018 format, which later AutoCAD releases still save. The table below is written from docs/SCOREBOARD.md by node site/tools/manual-numbers.mjs; do not edit it by hand.

Judged 2026-12-01 on 200-file samples (judges dwg and dwg_legacy; scoreboard commit 13fb62f). A version missing here had no file in the sample.

Version codeReleaseFiles decoded in the sampleObjects or records equal to the reference
AC1.40Release 1.400 of 10.0% of 15
AC2.10Release 2.105 of 5100.0% of 29
AC1002Release 2.511 of 11100.0% of 59
AC1003Release 2.622 of 22100.0% of 352
AC1004Release 914 of 14100.0% of 140
AC1006Release 10121 of 121100.0% of 8,130
AC1009Release 11 and 1226 of 2699.78% of 2,261
AC1014Release 148 of 8100.0% of 61,962
AC1015AutoCAD 2000 to 200216 of 16100.0% of 167,064
AC1018AutoCAD 2004 to 200614 of 14100.0% of 2,168
AC1021AutoCAD 2007 to 200928 of 2899.99% of 276,676
AC1024AutoCAD 2010 to 201215 of 15100.0% of 71,615
AC1027AutoCAD 2013 to 201735 of 3599.95% of 209,492
AC1032AutoCAD 2018 and later84 of 8499.93% of 434,967

How to read it:

  • "Files decoded" means the file was read to the end without an error. "Equal to the reference" compares every object field by field with LibreDWG's reading of the same file (or, where the corpus has one, the DXF AutoCAD exported alongside it). A field that differs makes the whole object count as unequal.
  • The sample held no Release 13 (AC1012) file, so Release 13 has no number here.
  • The one AC1.40 file in the sample is not read yet.
  • AC1018 (2004 to 2006) has the lowest object score, on a small count: fewer objects of that version were in the sample.
  • The reader also checks each file's own structure: section CRCs and the object map. That judge, dwg_container, and the damaged-file test (100 corrupted copies of each file, no panics allowed) are on the numbers page.

Rulingpen does not write DWG yet.

DXF

ASCII and binary DXF, every version from R12 to 2018, are read. On the latest scoreboard every DXF file that ezdxf can load also loads in Rulingpen, and the records match ezdxf's reading field for field except for a handful (the exact count, and the fields that differ, are on the numbers page). DXF written before R12 is read where it follows R12's layout; the viewer refuses one R1.4 DXF in the corpus.

The library can write DXF (rulingpen_dxf::write_dxf) in any version from R12 to 2018. Its round trip is not judged yet, so rp does not offer it as a command.

Entity types

These entity types are read into typed fields (see the drawing model); anything else is kept as a raw record and written back unchanged, so nothing is dropped.

EntityReadDrawn by rp plotNotes
LINE, POINT, CIRCLE, ARC, ELLIPSEYesYes
LWPOLYLINE, POLYLINE (2D, 3D, mesh, face)YesYesBulges and widths
SPLINEYesYesControl points or fit points
TEXT, ATTRIB, ATTDEF, MTEXTYesYesWith open stand-in fonts; see limitations
INSERT (blocks, arrays of blocks, clipped blocks)YesYes
HATCHYesYesSolid, gradient and pattern fills
DIMENSIONYesYesDrawn from the block AutoCAD stored for it
LEADER, MULTILEADER, TOLERANCEYesYes
SOLID, TRACE, 3DFACEYesYes
VIEWPORTYesYesPaper layouts are plotted through their viewports
IMAGEYesAn outline in rp; the picture itself when the library is given the image file (render_with_resources)The image file is not inside the drawing
WIPEOUTYesYesMasks what is behind it
PDF, DWF and DGN underlaysYesNo
XLINE, RAYYesYesClipped to the view
MLINE, TABLE, MESHYesYes
SHAPEYesNo
3DSOLID, REGION, BODYYesNoThe ACIS data is kept; solids are not drawn
Proxy entitiesYesThe proxy graphics the file carries

"Drawn" means the renderer emits geometry for the type. How close the picture is to AutoCAD's is measured as a whole, not per type: the render judge compares each plot with the thumbnail AutoCAD saved in the file. The geometry judge measures each entity's bounding box against ezdxf; its misses by type are listed in the scoreboard's detail column.