In this blog post, I want to explain a workflow on how you can label the distance between 2 different Alignments.
The reason for this blog is a couple of questions I had from customers. The context of the questions is railway design where a surveyed alignment needs to be compared with the designed alignment for maintenance purposes, but there are many more uses cases where this workflow can be useful.
So Let’s get started. The screenshot below shows a section of 2 different alignments, one in blue, the other in red
As described in the introduction I want to add labels, in this vase, every 5 meters, that show the distance between the 2 alignments.
To do that, I will create a new alignment label style
First, I cleared all the text that is added to the label by default, so I can start with a blank canvas,
The trick is now to add reference text in the label contents
Once “Reference Text” is selected, choose for “Alignment” in the type dialog box.
Now is the time to define the contents of the label. Click on the button with the dots (1) in the contents value. Clear the “label text” value from the right panel.
Choose the property Offset (2), set the number of decimals (3) and units to show and finally click the arrow (4) to add the contents to the label
Now the rotation, text size etc. can be set to finalize the label style.
The label style is now fully defined, it’s time to add it to the alignment.
After the labels are added, you will see this. Currently the label does not refer to the second alignment, so it is not possible to calculate the distance.
To get this fixed, select the labels and open the AutoCAD properties dialog.
In the “Reference Text Objects” property, select the second alignment (ALMSurveyed) . Immediately the Labels will be updated with the correct value.