# Rails, shapes and callouts in archhy

> Shape a rail run by run, move either end without losing its label, turn shapes, draw lines end to end and any polygon, and turn info boxes into callouts.

## Key takeaways

- A selected rail shows a handle on every straight run and a dot on every corner.
- Move either end of a rail without losing its label or style.
- Shapes turn, lines and arrows draw end to end, and you can draw any polygon.

Rails are the lines that connect services in an architecture diagram, and they carry most of its meaning. This week we made it much easier to draw connectors in architecture diagrams exactly where you want them, and gave shapes, lines and info boxes the same care.

## Shape a rail run by run

Before, you could nudge a rail's route only in a limited way, and a messy route often meant deleting the rail and starting again. Now a selected rail shows a halo, a handle on each straight run and a dot on each corner.

- Drag a run's handle to move that run. It stops at the short stub where the rail leaves a service.
- Drag a corner dot to move the corner, or click or tap it to flip the step.

**On a touch screen:** tap a handle first, then drag it. Dragging a handle you have not tapped moves the view, so panning never bends a rail. Tap the handle again while it is still, and archhy offers **Straighten**.

## Move an end, keep everything else

**On a touch screen:** select a rail and tap **Move start** or **Move end**, then tap a pad or a service. The rail keeps its name, label and style. **With a mouse:** drag a pad that holds a rail to move that rail's end. Hold Alt, or start from a free pad, to draw a new rail instead.

## Labels and line styles

A rail's label slides along the rail when you drag it, and stays on the line when the services at either end move. The quick bar sets the line's width and style (Solid, Dashed or Dotted) and the head at each end. Dashed and dotted lines are handy for async calls, replication or optional paths.

## Shapes that turn, lines that land

A selected shape has a turn knob above it. Drag it to turn the shape in 15° steps, or use the quick bar's Turn menu to rotate 90° or mirror.

**Line** and **Arrow** now draw end to end: drag from one end to the other. Ends snap to level, upright, 30°, 45° and 60°, and to other shapes' corners.

**Custom polygon** in the Draw drawer lets you click or tap each corner, then close the shape. Select it later to drag corners, add one with + or remove one with ×. Good for odd-shaped zones, regions or trust boundaries.

## Callouts and alignment

Info boxes show fields such as instance type, CIDR or port beside a service. Now you can drag an info box away from its service and a dotted or solid line points back to it. **Put back** returns it.

**On a computer:** the header has an **Align** button. Select two or more items to line them up (left, centre, right, top, middle or bottom) or space them evenly.

Why we did it: neat rails and aligned boxes are what make a diagram easy to read in a review. That should take seconds, not a fight with the mouse.

---

**Try it:** open [archhy.com/app](https://archhy.com/app), connect two services and drag a run of the rail.

Yesterday: [drawing that behaves the way you expect](https://archhy.com/blog/architecture-diagram-editor-drawing-improvements). Tomorrow: [Azure, Google Cloud and Kubernetes icons for everyone](https://archhy.com/blog/azure-google-cloud-kubernetes-icons-for-everyone).

## Frequently asked questions

### How do I change the route of a connector?

Select the rail, then drag the handle on any straight run or the dot on any corner. On a touch screen, tap the handle before dragging it.

### Can I reconnect a rail to a different service?

Yes. With a mouse, drag the rail's end to another pad. On a touch screen, use Move start or Move end, then tap the new service.

### Can I draw dashed or dotted lines between services?

Yes. Pick Solid, Dashed or Dotted in the quick bar's line width and style.
