Rulingpen

DWG & DXF engine without ODA memberships, GPL, or AutoCAD.

Clean-room Rust engine for AutoCAD DWG (R1.x–2018 / AC1032, covering AutoCAD 2018–2027) and DXF. Plot to PDF, SVG, and PNG from a headless CLI, embed the Rust crates in your own software, or open files offline in the free browser viewer — published pricing from £490/yr instead of ODA ($3,000–$37,500/yr), Aspose OEM ($2,397+), or GPLv3.

A machined mounting bracket in front view and section A-A, with dimensions, centre lines, notes and a title block, drawn in AutoCAD colours on a dark background.
The sample bracket that ships with the viewer, plotted by this build: rp plot rp-001-mounting-bracket.dxf -o bracket.svg

Three ways to use it

macOS · Linux · Windows · WASM
The Rulingpen viewer in a browser: a layer list on the left, the bracket drawing on a dark sheet in the middle with a title block giving the file name, format DXF 2000, units mm and scale, and Model, Saved view and A3 Sheet tabs below.
The free viewer with its sample drawing open. Layers, layouts, properties, measuring, and editing, all in the page.

The browser viewer

Free. Drop a DWG or DXF on the page: layers, layouts, properties, measuring, editing, and a PNG of what you see. The engine runs in the page as WebAssembly; the drawing is read on your device and never uploaded, and the page's CSP blocks outbound network calls.

Open the viewer

The rp command

Single static binary for macOS, Linux, and Windows. rp info and PNG plots are free. A licence unlocks PDF and SVG plots, rp dump (JSON Lines), rp convert, and rp compare (diff summary & redline PDF) — headless, offline key, zero AutoCAD runtime.

Download rp

The Rust library

Embed the same engine as Rust crates inside your own software: one drawing model for DWG and DXF, geometry, rendering, and PDF, SVG, and PNG output. Unknown objects and group codes are preserved rather than dropped.

The drawing model

Measured against outside references

scoreboard 2026-12-02 02:42

Each figure is one row of the scoreboard, judged against an external reference Rulingpen did not write. The corpus holds 5,966 DWG and 3,348 DXF public drawings; each judge runs on a fixed sample of 200 of them. Figures are cut, never rounded up.

99.91%

of DWG objects equal to the reference reading, field by field (R14 to AutoCAD 2018 files).

Full run of 22,948,673 objects, judge dwg, 1 Dec 2026. Target 98. How this is measured

99.92%

of DWG files from R14 to AutoCAD 2018 decoded without an error.

Full run of 5,124 files, judge dwg, 1 Dec 2026. Target 95. How this is measured

99.99%

of DXF records equal to ezdxf's reading (11,121,125 of 11,122,147).

Full run of 11,122,147 records, judge dxf, 1 Dec 2026. Target 99.5. How this is measured

99.88%

of pre-R13 DWG files (AutoCAD 1.x to R12) decoded.

Full run of 842 files, judge dwg_legacy, 1 Dec 2026. Target 95. How this is measured

0.812

mean similarity to the thumbnail AutoCAD saved in each file. On the same files ezdxf's renderer scores 0.654 and LibreDWG's dwg2SVG 0.445.

Full run of 3,557 drawings with a thumbnail, judge render, 2 Dec 2026. Target above 0.6546. How this is measured

99.94%

of files plotted to a PDF that qpdf accepts, 88 ms a file. This says the files open and plot, not that the plot is right.

Full run of 9,314 files, judge e2e, 1 Dec 2026. Target 95. How this is measured

Known limits & plotting matrix

said plainly

91.46%

of multiline text within 2% of the size AutoCAD recorded. The fonts are open stand-ins: no AutoCAD font ships with Rulingpen.

Full run of 250,161 text entities, judge text, 1 Dec 2026. Target 90. How this is measured

85.44%

of dimensions whose geometry Rulingpen generates itself matching AutoCAD's. Plots draw dimensions from the blocks the file carries.

Full run of 87,982 dimensions, judge annot, 1 Dec 2026. Target 85. How this is measured

CapabilityStatus todayDetails
DWG versions (read)SupportedR1.x through R2018 (AC1032, which is also the default DWG format saved by AutoCAD 2018–2027).
Paper-space layouts & viewportsSupportedLayouts rendered in tab order with model-space viewports clipped to each sheet.
DWG / DXF conversion & writeDXF & DWG R12–R2018rp convert and browser export write DXF and DWG R12–R2018 (DWG R2007 AC1021 container writing is not yet supported).
Fonts & plot stylesOpen stand-ins / library FontStoreNo AutoCAD fonts or .ctb files ship with Rulingpen. Pass your own licensed SHX/TTF directories via FontStore::add_dir in the Rust library.
External references (XREFs) & ACIS 3D solidsNot yetExternal files are not resolved automatically; 3D ACIS solid modelling bodies are preserved as raw records, not tessellated.
Clean-room IP provenanceZero GPL / zero Autodesk codeWritten from the ODA public specification and file inspection. LibreDWG (GPLv3) is run strictly as a compiled binary oracle; nobody working on Rulingpen reads its source.

Full limitations DWG to PDF CLI guide ODA SDK alternative Online DWG viewer

Prices

published, yearly

The viewer, rp info, and PNG plots are free for any use. Pro seat is £120/yr. The Rust library and full paid CLI: £490/yr for one developer, £1,900/yr for a team of five, £6,900/yr for a whole site or one product you ship. Instant Stripe checkout, offline Ed25519 keys, 14-day full refund, no sales calls. Pricing in full.

How it is made

The DWG format comes from the Open Design Alliance's public specification and from looking at files. LibreDWG, which is GPL, is used only as a compiled program to check results against; nobody working on Rulingpen reads its source. ezdxf (MIT) is the reference for DXF. No AutoCAD fonts, hatch patterns or plot styles are shipped. Every reader bounds what it allocates and is tested on deliberately damaged files. The clean-room and privacy statements.