Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filtering Grade Break Labels

32 REPLIES 32
SOLVED
Reply
Message 1 of 33
jporter
8319 Views, 32 Replies

Filtering Grade Break Labels

I've got a drawing in which the existing ground is so jaggedy that I've got way too many grade breaks (see the attached image).  I know I can use the weeding and eliminate the labels every 50 feet, or so, along the profile.  But I need to have the ability to only show a specific grade break range.  For instance, I'd like for my profile only to display grade breaks between 0% and 2% and not to display anything above 2%. I've tried making an expression, but have been hitting brick walls.  I also know I can manually (use the CTRL + click) select the specific labels that I don't want and erase them, but I've got lots of these labels.  Is there anyone out there (much more savvy at this than I) who knows of a LISP routine or an expression that can accomplish this? 

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
32 REPLIES 32
Message 2 of 33
tcorey
in reply to: jporter

I learned this just the other day, thanks to Jeff_M.

 

IF(ABS({Grade Change})<=2,0.10,0)

 

Then, in the label style, instead of using a fixed text height, use the expression name. It will be available in the list where you give text height for the components.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Tags (1)
Message 3 of 33
Joe-Bouza
in reply to: jporter

Thats what I call a golden nugget Smiley Wink

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 4 of 33
jporter
in reply to: tcorey

Tim,

 

Amazing!  I was using the wrong set of codes for the expression and was attempting to use it in the completely wrong area.  Thank you very much!

 

One more question, does your buddy Jeff_M also have a the code for filtering out the percent grades along the profile. I'll play with the expressions again but thoght I'd ask anyway. 

 

Regardless, thanks for the response. 

 

Jason

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 5 of 33
tcorey
in reply to: jporter

To filter the label by slope, make an expression under Profile-->Label Styles-->Line.

 

IF(ABS({Tangent Grade})<=0.02,0.1,0)

 

Use this expression as the text height in the label style. To filter on different value than <= 2%, adjust the first number, where I put 0.02. Four and a half percent would be 0.045, etc.

 

 

 

 

 

 



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 6 of 33
jmayo-EE
in reply to: jporter

The expression is the best way to filter the grade labels by percent but there is another way to simply reduce the number of labels. You all probalby know this but just in case,

 

In the profile properties dialog, bands tab, add a label weeding factor to the band. This will not filter by slope but if you just want fewer labels this tool is provided.

John Mayo

EESignature

Message 7 of 33
jporter
in reply to: tcorey

Tim,

 

You solution worked GREAT! ! ! !    After creating the expression, I went into my "percent grade" label style.  I verifired that the expression was set for Tangent Grade.  For the text height i set the value to be the name of the expression.  In your expression code I had to change the text height value form:

  • IF(ABS({Tangent Grade})<=0.02,0.1,0)
    to
  • IF(ABS({Tangent Grade})<=0.02,0.01,0)

After that was set my labels are filtered perfectly and the text height is correct.  Not sure why the text height must be set to 0.01 in order for the text to appear 0.1 in heigt, but I don't care.  It works. 

 

Thanks for all your input,.

Jason

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 8 of 33
christopheram85
in reply to: jporter

This works great! 

But how would I show something other than 0%-2% like 1%-5% or something like that.

 

Thanks

Message 9 of 33
Jeff_M
in reply to: christopheram85

This is for showing only 1% thru 5%:

IF(ABS({Tangent Grade})>=0.01,(IF(ABS({Tangent Grade})<=0.05,0.01,0)),0)

 

Adjust the 0.01 to work with your text size. For imperial drawings, if your normal text height in the style composer is 0.10", then this should be 0.10/12.

Jeff_M, also a frequent Swamper
EESignature
Message 10 of 33
tcorey
in reply to: jporter

C'mon, Jeff. I was getting all that credit for your solution and now you stick your nose in here...Man Sad



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 11 of 33
christopheram85
in reply to: Jeff_M

Thanks!

Message 12 of 33
jporter
in reply to: tcorey

Tim,

 

I was already giving you credit for it on my blog (http://dccadd.com/dirt).  Now I need to add Jeff.  Do either of you mind if I use your full names?

 

Jason

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 13 of 33
Jeff_M
in reply to: jporter

Sure thing, Jason.

 

Tim, I did let the question sit for nearly 2 hours before responding Smiley Happy

 

Jeff_M, also a frequent Swamper
EESignature
Message 14 of 33
PLynch30
in reply to: jporter

This code works great for showing percent slope ( IF(ABS({Tangent Grade})<=0.02,0.01,0)  )  but what should I add to the expression if I wanted to say show me all grades less than 2% and greater than 0? 

 

Thanks

 

P. Lynch

Message 15 of 33
trixo1000
in reply to: jporter

Hi !

 

the "grade change" expression dosen't work for me !! 

someone know why ???

2016-08-25_17-45-19.jpg

Message 16 of 33
tcorey
in reply to: trixo1000

Your expression says {Grade Break}. It should be {Grade change}



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 17 of 33
Joe-Bouza
in reply to: tcorey

Hi Tim

 

is the grade break entered in percent or ft/ft? im getting some unexpected results. Also, on my system the text height needs to be 0.001 to get leroy 100 otherwise it is huge. Any idea what I'm missing?

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 18 of 33
Joe-Bouza
in reply to: jporter

My system doesn't let me pick an expression for the grade label text height? weird
Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 19 of 33
Joe-Bouza
in reply to: tcorey

The perils of EE life 😮
Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 20 of 33
Jeff_M
in reply to: Joe-Bouza

Joe, ft/ft. See my reply in message #9 to this thread regarding text sizes. As for picking an expression, be sure the expression is formatted as a double.
Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report