My profiles are labelled with the gradient as per screenshot but I want to highlight the profile grade text (in a different colour) where the gradient is >=13%.
I'm sure it is a simple fix to do this but I have no idea so can anyone assist with this please?
neilyj (No connection with Autodesk other than using the products in the real world)
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.
Solved! Go to Solution.
Solved by neilyj666. Go to Solution.
Solved by MMcCall402. Go to Solution.
Solved by MMcCall402. Go to Solution.
Make an expression like the one below for profile label line labels. ( I named it Grade13+) Then in the line label style make a copy of the current text component for the slope, give it a color, then give it the name of the expression for its text height. The expression will feed the label style one of two text heights based on the slope being above or below 13%. If its below 13% it returns 0 and the text component doesn't show. If its over 13% it returns a proper text height and it shows up on top of the normal label. ( I used 0.00833) If you use the exact height of the original slope label you can just let the one with the color over write the normal label and it will hide it completely. If not, use a background mask.
@MMcCall402 thanks for this - I like the idea of a block being added as I have one (a bit big at the moment though) that would suit this; can you explain how to add this block too?
neilyj (No connection with Autodesk other than using the products in the real world)
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.
Sounds similar to cut fill tics green and red.
two expression for the text height of segmentgrade > or < and set the format color
Joe Bouza
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.
Joe, It is the same type of solution just a different application. Here it works with just one expression as the draw order of the text components takes care of which label component shows up. No need to turn off one text component if the other one overlays it exactly when the situation calls for it.
@MMcCall402 I think I have got it to do as you described but this way removes the other gradients that are not >=13% - the >=13% looks good but can both be displayed?
neilyj (No connection with Autodesk other than using the products in the real world)
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.
You should have 2 text components in you label style. One that will show for all slopes and has a normal text size specified. The second one is the one that's red and will only show when the slope is > 13%. Use the draw order in the label style to put the red one on top of the normal one. The red one will overlay on the normal one when the slope exceeds 13% and cover it completely.
@MMcCall402 That was what I missed...😀
neilyj (No connection with Autodesk other than using the products in the real world)
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.
Can't find what you're looking for? Ask the community or share your knowledge.