PDA

View Full Version : 2013 expression to add color and box



dsears
2016-01-29, 08:41 PM
In a profile view. I have created 2 band labels in which one of the label components is:
(Elevation difference between two profiles)
I would like to be able to add a box and change color to display labels:red with a box if negative (out of tolerance), and in green if the difference is positive? In other words I want red for cut and green for fill.
I added a document to help clarify.
Thanks

MMccall
2016-05-06, 01:20 PM
Edit the contents of the current elevation difference to use the modifier of "hide negative value" and leave the color format as green. This will return only green fill values and nothing for cut values. Now add a new text component but this time reverse the order of the two surfaces, again use the "hide negative values" and this time format that item to be red. This will return red cut values and nothing for fill values.

I don't have a solution for the box. At first I thought it would be to simply frame the cut values but the result was a small frame artifact in the location where there was fill. (apparently a component with no value still gets a frame) Then I thought I could cover it up by putting a frame mask for the fill values ... this fixed the fill locations but then I had small masked areas in the middle of the cut values ... grrrr