The schematic-maps plugin

A free plugin that reads a track plan and draws a schematic sheet, a JMRI (Java Model Railroad Interface) Layout Editor panel and a CATS (Crandic Automated Traffic System) dispatcher desk. It drew 37 of the 38 example layouts that AnyRail publishes.

The plugin takes a track plan and draws it three ways from one solve: a schematic sheet with a band for each level, a JMRI Layout Editor panel, and a CATS dispatcher desk. The plan can be an AnyRail plan exported as JMRI XML, or an AnyRail .any file read directly.

Get it

The plugin is public and free, in the same repository as the other model-railroad plugins.

Plugin repository on GitHub Full results page

01What it does

The sheet has one band for each level, the main line level through every switch, yard ladders stepped diagonally, loops, helix tracks, lettered connectors where a track climbs between levels, and signal masts. Switch numbers and track names are placed so that nothing overlaps, and the command checks the finished sheet for crossing lines and overlapping labels.

The Layout Editor panel and the CATS desk come from the same solved drawing, so the three agree on the order of tracks and on every switch. It runs as a Python command, schematic, that uses only the standard library, and draws the same sheet from the same input on every machine.

The only input it needs is the plan. Preferences (titles, band order, lengths chosen for looks) and hints are optional, and the sheet is correct without them. A skill tells the agent the order of the work. Install it in Claude Code with claude plugin install schematic-maps@model-railroad-skills.

02The test on AnyRail's examples

DRail Software, the maker of AnyRail, publishes 38 example layouts at anyrail.com/examples. Each was exported from AnyRail as JMRI XML and drawn by plugin version 0.1.53 with no hints and no preferences, so each sheet is the plan's own track, read as it is.

  • 37 of 38 draw. D6 (1105 switches) ran out of its 900 s limit and has no sheet.
  • Times run from under a second to about 14 minutes. The longest drawn is D18, 144 switches, at 833 s.
  • Lighter search. A band with 100 or more switches, or 20 or more independent loops, gets a lighter search, which the run logs. The gallery marks the four layouts where it was used (D10, D11, D17 and D24).
  • Faults are places where two tracks cross or lie on top of each other on the sheet. Label faults are labels that found no clear spot. Both counts are under each pair of pictures below.

The runs were made on a Mac, three plans at a time, with a 600 s limit and 900 s for the last three. The results page on GitHub has the table and every sheet.

03Credits

These layouts are other people's work

  • The layouts are the work of their designers, published by DRail Software, the maker of AnyRail, on its examples page.
  • Each title and designer below is as AnyRail gives it. "Not credited" means the page names no one.
  • The left picture of each pair is AnyRail's drawing of the plan, exported from AnyRail with the plan.
  • Each layout's title links to its entry on AnyRail's examples page.
  • The right picture is the plugin's sheet.
  • The plan files are not published.

NotesReferences

  1. The schematic-maps plugin (GitHub). github.com/lnevo/model-railroad-skills
  2. Results on AnyRail's example layouts, with credits and every sheet (GitHub). plugins/schematic-maps/docs/anyrail-examples
  3. AnyRail example layouts, DRail Software. anyrail.com/examples

More: The Car Cards Plugin · The Operations Pro Plugin · Behind the Scenes