Measuring distances, heights and rulers
- Gratuit
- Depuis la v0.9.0
The Measure tool for reading the distance between any two points and the height of anything above the ground, pinning those measures to the plan, and the rulers along the canvas edges.
Two tools answer "how far is it?" on the canvas: the Measure tool reads the distance between two points you pick or the height of whatever you point at, and the rulers along the top and left edges of the 2D view read positions against the grid origin. A measure you want to keep can be pinned to the plan, where it stays while you get on with laying track.
The Measure tool
#Pick the ruler icon in the tool rail, or press M. The cursor turns into a crosshair, and a hint at the bottom of the canvas reminds you how it works.
There are two ways to measure, and they end in the same place:
- Drag from the first point to the second and let go.
- Click the first point, move the pointer (the line follows it), then click the second point.
A label beside the line — offset clear of it, so it never hides what you are measuring — shows the distance in your units, with a second line underneath giving the width and height it spans (Δx / Δy) and its direction in degrees, measured counter-clockwise from the right.
When the two ends sit at different heights, on different decks or partway up a ramp, the distance is the true 3D one, the straight line through space between them. The line underneath then gives what it's made of: the plan distance, the one you'd lay out on the baseboard with a tape measure, and the rise (Δz). So 300 mm on the plan rising 400 mm reads 500.0 mm, with plan 300.0 · Δz +400.0 under it.
Snapping the ends
#- Track ends. Move the pointer near the end of a piece (a free end or a join) and a ring appears around it. Press or release there and the point locks exactly onto it. A locked end draws as a filled dot, and a free point as a hollow one. This is the quickest way to answer "how big is this gap?" or "how far apart are these two tracks?".
- The grid. With SNAP on in the status bar, free points land on the snap grid, as placed pieces do.
- Hold
Shiftto lock the line to horizontal, vertical or 45°, the usual drawing-tool convention. The lock wins over snapping, so a horizontal measurement stays horizontal. - Hold
Alt(⌥on a Mac) to ignore snapping and put a point exactly where the pointer is.
Adjusting and clearing
#Once a measurement is placed, hover either end until the cursor becomes a hand, then drag that end to a new spot. The other end stays put.
- Start a new measurement anywhere else to replace the current one.
Escclears the measurement. PressEscagain to go back to the Select tool.Delete/Backspacealso clears it, so a Delete meant for the measurement never removes selected track.- Right-click while you're still placing the second point to cancel.
Until you pin it, the measurement belongs to the Measure tool, not the layout. It never saves, never goes into undo history, and only shows while the tool is active. Switch to another tool and back and your last measurement is still there, as with a ruler in an image editor.
You can measure in 2D or in the 3D view (free points land on the active deck). In Split view the measurement shows in both panes.
In 3D the tool needs to be able to see the deck: if you drop the camera until it is nearly level with the surface, a point on that surface can't be picked — a pixel of pointer movement would be metres of layout — so the tool refuses and says so. Tilt the view back down and it measures again.
Pinning a measure to the plan
#Press Pin on a placed measurement's label, or Enter, and it stays on the plan. You can go on placing track with it in view, instead of going back and forth between tools to check a distance. The Measure tool is ready for the next one straight away.
A pinned measure:
- Shows everywhere. Under every tool, in 2D, in 3D and in both panes of Split view, and on share links. In 3D it also draws its plan run and rise as a thin dashed line when its ends are at different heights.
- Follows the track. An end on a track end stays on it, so when you move, turn or raise that piece the line and the number follow. A free end stays where you put it. Delete the piece and the end stays where it was pinned, as a free end.
- Is part of the layout. It saves and syncs with it and travels in
.trackplanfiles, and adding or removing one is one step of Undo.
With the Select tool, click a pinned measure's label or its line to pick it. Press Delete (or the × on its label) to remove it, and Esc or a click elsewhere to let go. Under the other tools its label lets clicks through, so it never gets in the way of what you're doing.
When there are too many to read the plan, turn Pinned measures off in the Overlays list at the top right of the canvas or in the View menu. They're only hidden, and your choice is remembered on this device. Pinning a new one shows them again.
To change a pinned measure, delete it and measure again.
Reading a height
#Press H (from any tool), or Height in the options bar while you're measuring, and point at anything. There's nothing to drag: a label reads how high that point is above the ground, and a dashed line drops from it to a ring on the ground at z = 0, the level of the boards' tops. From straight above in 2D the line is end-on, so you only see the ring; switch to 3D to see it drop.
- On track, it reads the track's height there, partway up a ramp or helix included. A track end snaps like a measurement's end, with a ring around it.
- On a hill, platform, raised road or raised board, it reads the top.
- Anywhere else, it reads the active deck's height.
Alt(⌥on a Mac) skips the track and reads that too.
The line under the height is the clearance: how much room there is to whatever is nearest over that point, or else under it.
- Another track: "80.0 mm clear to the track above", or "clear over the track below" from the upper track. It's measured as the clearance check measures it, track height to track height, and any track passing within a train's width counts. If your reference train doesn't fit under it, the line turns red and says what the train needs.
- A hill: how far it is to its top, as with track through a tunnel.
- A raised board: how far it is to its underside.
Pointing at empty ground under a bridge reads the room from the ground up. From straight above, the upper of two crossing tracks wins; from the side in 3D, point at either.
Click to pin the height to the plan. It works like any pinned measure, and its height and clearance stay up to date as the track around it changes: a height pinned partway along a piece stays at that spot on the piece.
Press H again to go back to distances. The tool starts on distances each time you pick it up.
Rulers
#Turn the rulers on with Rulers in the Overlays list at the top right of the canvas or in the View menu, with ⌥R / Alt+R, from the command palette, or from the right-click menu on empty canvas. They sit along the top and left edges of the 2D view, and your choice is remembered on this device.
- The rulers read distances from the grid origin (0, 0), in millimetres or inches depending on your units. The corner shows which. The 0 mark is highlighted so you can always find the origin.
- The spacing of the marks adapts to your zoom, as the grid does, so labels never crowd.
- An orange tag on each ruler follows the pointer with its exact position, so you can read where the pointer is without looking down at the status bar.
- With pieces selected, the rulers shade the selection's extent and label its edges, so you can read at a glance where a run of track starts and ends. With the Measure tool active, they shade the measurement's extent instead.
The rulers are a 2D aid. They hide in the pure 3D view (a perspective view has no single scale) and on small screens, and in Split view they cover the 2D pane only.