Civil 3D label text component editor add value to elevations

Civil 3D label text component editor add value to elevations

yuben112
Advocate Advocate
5,541 Views
4 Replies
Message 1 of 5

Civil 3D label text component editor add value to elevations

yuben112
Advocate
Advocate

Dear AutoCAD community,

I came upon a situation where I was only given a roadway surface without top of curb elevations, and I need to label both top and bottom of curb elevations. I tried to edit the Text Component Editor to see if I can create a label that reads bottom elevation and automatically add 0.5' for top of curb (TC), but couldn't seem to work it out. There are like 100+  spots needing to be labeled, and I eventually decided to manually enter TC.

 

After ward I realized that I could make a copy of the surface and raised it 0.5', and create two labels reading from two different surfaces. Not sure if that could've made my life easier. Anyhow, just wondering if there is a way to set up civil 3d labels so it does the hard work instead of me?

 

First picture shows what I did.

 

Second picture shows what I hoped I could do.

 

Bunch of Thanks

0 Likes
Accepted solutions (1)
5,542 Views
4 Replies
Replies (4)
Message 2 of 5

Jeff_M
Consultant
Consultant

Create an Expression to add the 0.5 to the surface. Then have both the surface elevation and the expression in the label. In my case I had the TC elevations on the surface and needed to label the flowline. So my Flowline exprssions was just {SurfaceElevation}-0.5 then this was my TextComponent:

 

TC=<[Surface Elevation(Uft|P2|RN|Sn|OF|AP)]>
FL=<[FlowLine(P2|RN|AP|Sn|OF)]>

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 5

yuben112
Advocate
Advocate

Hi Jeff,

I tried your expressions but had no luck. I am not sure how to use "{SurfaceElevation}-0.5" expression in the component editor. Attached is what I have in the editor window.

 

When I copied

"TC=<[Surface Elevation(Uft|P2|RN|Sn|OF|AP)]>
FL=<[FlowLine(P2|RN|AP|Sn|OF)]>"

in my component editor without anything else in the editor window. The second attachment is how the label behaves.

 

I guess my problem is that I don't understand the meaning of all those "P2|RN|AP|Sn|OF" expressions. Which one of those constitute the "-0.5" function? I tried to replace "flowline" with {SurfaceElevation}-0.5" and it didn't work either.

 

Any help is appreciated.

0 Likes
Message 4 of 5

Jeff_M
Consultant
Consultant
Accepted solution

@yuben112, you need to create the expression in the Expressions branch of the Label STyle you will be using. Here, mine is for Surface Spot Elevations, so I added the Flowline expression to that section:

1-24-2017 8-18-58 AM.png

 

Once the expression is created then it becomes available as a property option in the Text Component editor where you can addit with the desired precision and formatting:

1-24-2017 8-20-54 AM.png

 

Hope that helps.

Jeff_M, also a frequent Swamper
EESignature
Message 5 of 5

yuben112
Advocate
Advocate

!!!! You rock Jeff. I didn't know you could Create Expressions! Imagine how much more I can use this feature. Thank you so much!

 

Ben

0 Likes