SVG symbols

The Official SpDrS60 Theme

The official theme is SpDrS60.
For testing and problem reporting this theme should be used.
All other themes should follow the naming convention of the SpDrS60 theme.


The SpDrS60-extra is a user theme and must be set as first in the list to be activated and will show switch objects with two extra indicators for locking and holding.


Theme 1 - 5

Select the desired themes and restart Rocview to activate them.
If you have defined your own SVG symbol for a certain item, place it in the “Setup” list before the Theme that has the default symbol.
That means the first Theme determines how a SVG is portrayed

Item ID Pointsize

Adjust the pointsize for item IDs to fit the ID length choosen. Default is 7.
The Rocview has to be restarted for changes to take affect.

Text Pointsize

Adjust the pointsize for Block ID and for Text objects with zero pointsize.
Best results for: 1)

  • OS X = 14
  • Linux = 13
  • Windows = 10
  • Default = 10

The Rocview has to be restarted for changes to take affect.

Process route/block events

To reduce processor resources these options can be disabled.

Show routes on switches

By activating this option the normal switch positions will be shown in Cyan.2)
For active routes this color will change in Yellow.
Raster switch types are not supported by this option.
Only the SpDrS60 theme has the needed SVGs.

To get the route IDs automatically set in the switch objects the analyzer must be started again if the routes were generated with a revision older then 7884.
In case of manual routes use the Select dialog.


NL and DB

The following screenshot shows the usage of customized symbols comming from two themes: NL and DB:

Theme 2 can only show the unused places from theme 1, and theme 3 the unsused places from theme 1 and 2.

Track/Road Layout

Track and road symbols can be mixed in one layout:

The road symbols have the same naming as the track symbols but are prefixed with road-.

Create SVG symbols

Text editor

If you wish to use your own symbols in a track plan you have to create these symbols SVG format.
The symbol size is set in the svg file, but make sure those values are a multiple of 32.

Turntables are not supported in SVG because of its very complex nature.

The file names are predetermined for each state of a symbol as listed here: Symbol Names

The path must be conform:

But only M, L, C and z are evaluated. All coordinates are rounded to integers.
The Curve is only supported as the one and only in a path. 3)

The following example (track with blue outline filled yellow ) shows which information is basically evaluated by Rocview:

<svg xmlns="" width="32" height="32">
    <path stroke="blue" stroke-width="1" fill="yellow" d="M 0,16 L 2,13 L 29,13 L 31,15 L 31,16 L 29,18 L 2,18 L 0,16 z " />

The path node maybe multiple listed.
Rotation is done in the Rocview.

Curves and circles:

<svg xmlns="" width="32" height="32">
    <path stroke="blue" stroke-width="1" fill="yellow" d="C 10,10 25,10 25,20" />
    <circle cx="16" cy="12" r="5" fill="red" stroke="blue"/>


You can use Inkscape and start to create a new 32×32 icon. Rocrail supports just integers for coordinated and therefore the following settings are quite useful:

These settings , especially 'Always snap', apply only during the creation of a path (Shift+F6) . As soon as you try to move path nodes with the mouse Inkscape will create decimal coordinates again.

Another useful setting is to switch on the the outline display:

At the moment the only thing evaluated in Rocrail are <path../>.
With Shift+F6 you can start this sequence; try to generate Lines only, no Curves.
As soon as you're done with the graphics save the file in Inkscape and open it with a text editor to copy the path information into another new file.

Default Symbols

Default symbols are SVG like vector graphics, and are hardcoded in the Rocgui sources.
They only are needed when the Rocrail installation is broken, and there are only some basic symbols available! Report it if you are having trouble with symbols.

Blinking Aspects

Starting with revision 5315 a second Graphics Container4) can be added in the SVG definition which will be alternated every second.
Only signal objects are enabled for this feature.


<svg xmlns="" width="32" height="32">
    <path stroke="blue" fill="yellow" d="M 0,16 L 2,13 L 29,13 L 31,15 L 31,16 L 29,18 L 2,18 L 0,16 z " />
    <path stroke="blue" fill="grey" d="M 0,16 L 2,13 L 29,13 L 31,15 L 31,16 L 29,18 L 2,18 L 0,16 z " />

1) Dependents of screen resolution and taste.
2) Cyan=rgb(0,255,255
3) Curves are no longer supported and have never been used in the Themes.
4) <g></g> Section

Personal Tools