Rulingpen

Limitations

What this build does not do, or does only partly. Each point names the judge that measures it, where there is one; the numbers are on the numbers page.

Not built

  • DWG writing. Rulingpen reads DWG and does not write it. rulingpen_dwg::write_dwg returns an Unsupported error.
  • Conversion from the command line. rp has no convert command. The library can write DXF, but that round trip is not judged yet, so it is not offered as a feature.
  • Compare. Finding the differences between two drawings is planned and not built.
  • The editor. There is no drawing editor; the Pro seat waits for it.
  • A hosted API. Everything runs on your own machine or in your own browser.
  • Linux and Windows builds. rp has been built and tested on macOS only.

Partly done

  • Fonts are stand-ins. No AutoCAD font is shipped. AutoCAD's SHX fonts (txt, romans, simplex and the rest) are replaced by open stroke fonts built from public-domain Hershey data, and a missing TrueType face by Liberation Sans. Lettering therefore looks close to AutoCAD's but not the same, and its width can differ; judge text measures how often a text's size lands within 2% of what AutoCAD recorded. With the library you can supply the real fonts (FontStore::add_dir); rp uses only the built-in ones.
  • Dimensions are drawn from the file's own blocks. AutoCAD stores the lines, arrows and text of every dimension as an anonymous block, and Rulingpen draws those, as AutoCAD does. Its own generation of dimension geometry (needed once it writes or edits drawings) matches AutoCAD's on few dimensions so far: judge annot, geometry metric.
  • Extents. Rulingpen computes a drawing's extents from its geometry. They match the extents AutoCAD cached in the file on about half of the sample. Many of those caches are shown to be wrong (they hold the drawing limits, or are larger than everything drawn), and the judge sorts the misses into such classes; the rest are mostly text boxes for fonts that are not present, solids, and block references. Judge geom.
  • 3D solids, regions and bodies are read and kept but not drawn: there is no ACIS modeller. SHAPE entities and PDF, DWF and DGN underlays are not drawn either.
  • Images. rp plot draws an outline where a raster image sits; the image file is not part of the drawing. The library draws the picture when given the file.
  • Plot styles. rp plot plots in the drawing's colours. Plot style tables (.ctb) can be passed to the library's renderer; rp has no option for them yet.
  • External references are not loaded: an xref's geometry is not drawn unless the file carries it.

How the numbers can mislead

  • Every judge runs on a 200-file sample of a corpus collected from public sources. A sample is a sample: your drawings may be harder, or easier.
  • "Files plotted to a clean PDF" says files open and plot. It does not say the plot is right; the render, text and annotation numbers say how right.
  • "Equal to the reference" is only as good as the reference. Where LibreDWG or ezdxf are wrong, a matching Rulingpen is wrong too. That is why the DWG judge prefers an AutoCAD-exported DXF of the same drawing wherever the corpus has one.

Small things

  • rp dump file | head ends with rp: Broken pipe (os error 32) on standard error and exit status 2 once head stops reading. The output that was read is complete; ignore the message, or write the dump to a file.
  • rp plot with a misspelt --layout name plots nothing useful and does not say so yet. Layout names match without regard to case.