Rulingpen

Moving from the ODA SDK or LibreDWG

What maps to what, what Rulingpen cannot do yet, and how to check that your drawings come through. Read the gaps first: if you need to write DWG today, stay where you are for now.

Check the gaps first

All limitations Supported versions

From the ODA SDK

If your code is built around a database object that you open from a file, walk through tables and object ids, and send to a rendering device, the shape carries over directly; there is less of it.

You haveIn Rulingpen
Application services you initialise before anything elseNothing to initialise. Fonts come from a FontStore you pass to the renderer.
A database opened from a fileread_dwg(&bytes, &opts) or read_dxf, giving a plain Drawing value you own. No smart pointers, no open and close modes.
Object ids and opening objects by idHandle (the number AutoCAD shows). Entities sit inside their Block; non-graphical objects are in drawing.objects, found with drawing.object(handle).
Symbol tables and their recordsdrawing.layers, linetypes, text_styles, dim_styles and the rest, referred to by name and compared without regard to case.
Block table records, model and paper spacedrawing.blocks; drawing.model_space(); drawing.layouts() for paper layouts in tab order.
Entity classes and castingOne enum EntityKind: match on Line, Circle, MText and the rest. Common properties are in entity.common.
Custom objects you cannot decodeKept as Other records with every group code (and, for DWG, the raw bytes), so nothing is lost.
Audit and recoverRecovery is the default: problems come back as Diagnostics next to the drawing. ReadOptions { strict: true, .. } stops at the first one instead.
A vectorisation device for screen or plotrulingpen_render::render gives a DisplayList; rulingpen_out writes it as PDF, SVG or PNG. To draw on your own canvas, walk the display list.
Annual membership, distribution rights tied to itA yearly licence at a published price; see pricing and the licence agreement.

From LibreDWG

Most projects use LibreDWG through its programs. These are the nearest rp commands:

LibreDWG programRulingpen
dwgread with JSON outputrp dump file.dwg: JSON Lines, one record per line, the same shape for DWG and DXF.
dwglayersrp dump file.dwg | jq -r 'select(.kind=="layer") | .data.name'
dwg2SVGrp plot file.dwg -o file.svg, or -o file.pdf / -o file.png. On the render judge's sample, Rulingpen's picture is closer to AutoCAD's own thumbnail than dwg2SVG's; see the render numbers.
dwgbmp (the saved preview)The viewer shows it in its File panel; in the library, rulingpen_dwg::thumbnail(&bytes).
dwg2dxf, dxf2dwg, dwgwriteNo equivalent yet: Rulingpen does not convert or write DWG.

The licence is the other difference: LibreDWG is under the GNU GPL; Rulingpen is under a commercial licence written for use inside closed software.

Check your own drawings

  1. Open a few of your hardest drawings in the free viewer. It names the version of any file it cannot read, and lists what the reader noticed.
  2. Run rp info on a folder of them (free). Exit status 2 marks a file that did not read.
  3. Plot them to PNG (free) and compare with what you get today.
  4. For a field-by-field comparison, a Developer licence unlocks rp dump; diff it against your current tool's output.

Questions about a migration: support@rulingpen.dev.