how to label feature line with it's slope

how to label feature line with it's slope

Anonymous
Not applicable
8,813 Views
10 Replies
Message 1 of 11

how to label feature line with it's slope

Anonymous
Not applicable

I have added labels to feature lines but not sure how to set the label to show the slope of the feature line.

0 Likes
Accepted solutions (2)
8,814 Views
10 Replies
Replies (10)
Message 2 of 11

AllenJessup
Mentor
Mentor
Accepted solution

Hi @Anonymous,

 

There is a component called Grade Check That will show the slope.

 

slope.PNG

 

There is a Grade component you can use to show the Grade.

grd.PNG

 

For the Arrow I think an expression (unfortunately) also called  GradeCheck  may be included OOTB now.

 

gradcheck.PNG

 

If not. This is how it's written.

 

exp.PNG

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 3 of 11

KMercier_C3D
Advisor
Advisor
Accepted solution

First make sure you have a grade label style for your Lines:

Go to the Settings tab in your Panorama and expand to General -> Label Styles -> Line.  Mine looks like the graphic below with a Grade Component (Text from the A+ dropdown) and an Arrow Component (Direction Arrow from the A+ dropdown)

image.pngimage.png

On the Arrow component I have the rotation set to Grade Check which is an Expression to make the arrow point down grade (and the slope always is shown as a positive). You will need to define this prior to setting up the Arrow component of the label. 

image.png

 

Next to label your feature line go to the Annotate ribbon and select Add Labels -> Line and Curve, set the label type to multiple segment, and select your Grade Only label style. Then click the Add button and select your feature line.

image.pngimage.png



Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

Message 4 of 11

codee
Advocate
Advocate

As far as I can tell these labels DO NOT work with arc segments of feature lines. you will get the wrong slope direction if you have both counter clockwise and clockwise arcs in your feature line.

0 Likes
Message 5 of 11

ChrisRS
Mentor
Mentor

It works for me.

AChrisRS_0-1649546268154.png

Image updated 2022-04-08

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 6 of 11

Neilw_05
Mentor
Mentor

Are those arc slopes plus or minus? This what we get for feedback.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
0 Likes
Message 7 of 11

ChrisRS
Mentor
Mentor

@Neilw_05 wrote:

Are those arc slopes plus or minus? This what we get for feedback.


Neil, I'm sure that you understand it, but this how I would explain to those giving feedback.

"The grade shown is downhill in the direction indicated by the flow arrow.
Under this convention, Arrows never point uphill. Logically these downhill grades are all negative, but by convention they are unsigned. The direction is clarified by the arrow."

 

For a multi-segment polyline, the arrow and grade pair apply to the individual segment being labeled. C3D feature lines have a direction, from start to end as drawn. This direction can be reversed.

By default, C3D feature line segment grades are signed; positive is uphill in the feature line direction; negative is downhill in the feature line direction. Arrow point in the feature line direction. Visually, unless it is manually labeled with an arrow, there is no clear way to 'see' the feature line direction.

 

In the illustration below, the upper portion of the label shows the segment unsigned grade (drop negative) and the grade check value. Upper arrow rotation = grade check.

The lower portion of the label shows an unrotated arrow and signed grade.
This could be an alternate grading annotation convention.
Autodesk, at some point, stated including the grade check expression OOTB 

2022-04-09 17_41_52-Autodesk Civil 3D 2022 - [feature line curve lables.dwg].png     

Here is a similar illustration with the feature line direction reversed. Note that the arrow points downhill convention is consistent, but the feature line direction convention is different.

2022-04-09 17_47_19-Autodesk Civil 3D 2022 - [feature line curve lables.dwg].png

 

 

 

 

 

 

Regarding "Conventions":

In the second episode of The Big Bang Theory, Penny is trying to convince Sheldon to throw Leonard a birthday party, after finding out his mother never threw him one as a child.  She also tries to explain why he has to buy him a present. Sheldon just doesn’t get it, until Howard suggests that she should “Try telling him it’s a non-optional social convention”, which he immediately accepts. 

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 8 of 11

ChrisRS
Mentor
Mentor

This follow-up is in response to a PM (Personal Message) I received.

"... (I) have been scratching my head trying to figure out how you have arrows on your curve labels. If you could explain that to me I would be very appreciative."

I am answering here for the benefit and befuddlement of all.

  1. Civil 3D labels include a Direction Arrow component for Line labels but not for Curve labels.
  2. The Direction Arrow component can be emulated in Curve labels by using a Block component.
    1. I used the AeccArrow block that is supplied with Civil 3D.
    2. The rotation angle needs to be set to Grade Check.

I have attached the source file for these illustrations.

Good Luck!

ChrisRS_0-1669825435204.png

ChrisRS_1-1669825515867.png

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 9 of 11

charlie0676
Explorer
Explorer

This is really good!

Is there an expression that you can add that would color the slope labels based on a range of slopes?

0 Likes
Message 10 of 11

ChrisRS
Mentor
Mentor

As is often the case with Civil 3D label questions, the answer is NO, but there is a workaround.

 

Use "The Old Text Height Trick" 

  1. You will need a label component for each condition.
  2. Each of these components can have its own format, including color.
  3. You will need an expression for each slope range that returns an appropriate text height.
    1. Value = 0.0 for out-of-range.
    2. Value = Text Height in feet or meters for in-range.
    3. This expression will use [General Segment Grade].
      Since you can have Plus or Minus slopes, you will probably want to test on the absolute value.
  4. The visibility for each component will be controlled by its text height.
    Set the text height for each component to the appropriate range expression from step 3.

Good Luck!

 

ChrisRS_0-1689875315013.png

 

Christopher Stevens
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 11 of 11

charlie0676
Explorer
Explorer

That makes perfect sense! Thank you, I will give this a try.

0 Likes