Show Only Last Two Digits of Elevation Labels? Civil 3D

Show Only Last Two Digits of Elevation Labels? Civil 3D Civil 3d Tips

Your drawings are full of stuff and you are running out of space? Definitely displaying only the last two digits of spot elevations will help you make your drawings look way better.

So let’s jump right in it.

Create an Expression

We will have to create an Expression that will help us display only Last Two digits of the Spot Elevation Labels. Follow the steps below:

  1. Open the Toolspace panel on the Home Ribbon Tab.
  2. Select the Settings menu on the right side
  3. Right click on Expressions which are located in Surface > Label Styles > Spot Elevations > Expressions and hit New.
    Show Only Last Two Digits of Elevation Labels? Civil 3D Civil 3d Tips
  4. Give that expression a name, for example, “Last two digits” and in Expression field paste this text: {Surface Elevation}-100*TRUNC({Surface Elevation}/100) and hit OK
    Show Only Last Two Digits of Elevation Labels? Civil 3D Civil 3d Tips

We just did the Expression for removing the first digits and leaving only the last two ones. Now we can place that expression in out Spot Elevation Labels and move forward. However, there is one small problem, if a truncated value is below 10 we will end up with only one digit in front of the decimal sign. James [email protected] from http://blogs.rand.com/civil/ came up with a great solution. Create an expression for text high that will return 0 if the truncated value is below 10 and return nothing if it is above. So let’s create the second expression

  1. Right click on Expressions and hit New again.
  2. Give the second expression a name, for example, “Zero” and paste this in the Expression Fied:  IF({Last Two Digits}<10,0.1/12,0) and hit OK.

Create Spot Elevation Label

After creating the two Expressions, we are ready to create the Spot Elevation Label that uses those. The steps are as follows:

  1. Go to Layout Tab in Label Style Composer (one way to open it is to Right click on your label and hit Edit Label Style) and create new Text component.
  2. For Anchor component choose <feature> For Contents place “0” and for Text Hight choose our “Zero” Expression.
    Show Only Last Two Digits of Elevation Labels? Civil 3D Civil 3d Tips
  3. Create another Text component and for Anchor component choose the first Text in our case “zero” and for contents choose the Last two digits Expression.
    Show Only Last Two Digits of Elevation Labels? Civil 3D Civil 3d Tips
  4. Hit OK. And you are ready!

Show Only Last Two Digits of Elevation Labels? Civil 3D Civil 3d Tips

Hope you like our Civil 3D Tip, you can check our other Civil 3D Related topics here and don’t forget to subscribe for more great tips like this one!

 

 

Leave a Reply