Re. turning all the 25% labels off at once, you can select a bunch of labels while holding done the CTRL key and then changing the visible value in the properties dialogue pallette to false for all of them at once. But I have set up a label style to do automated labels like i think you are asking for.
I get the attached result by using a couple text components in the section segment labels. One for grades i.e. % and one for slopes i.e 1:4
I then use an expression to check the length of a section segement and if it's below a certain length or above a certain slope the text height for the grade is set to very small, so it is virtually invisible.
I also do the same for the slope but the slope is above a certain value.
This is the expression i use to work out the text height for the grade.
if({Section Segment Length}<0.7,0.00001,if({Section Segment Cross Slope}<0.1,if({Section Segment Cross Slope}>-0.1,0.002,0.000001),0.000001))
It basically checks if the the segment length is less than 0.7m then the value to return for the text height is 0.00001 (is in meters). Otherwise check if the segment slope is less than 0.1 (ie 10%) and greater then -0.1 ( -10%) and if so return 0.002 for the text height (2mm) all else return 0.00001 (0.01mm)
here's the expression for the slope
if({Section Segment Length}<0.7,0.0000001,if({Section Segment Cross Slope}>=0.1,0.002,if({Section Segment Cross Slope}<=-0.1,0.002,0.00000001)))
Regards,
Andrew Puller
If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.
Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023