I'm trying to suppress trailing zeros in a surface slope label in run:rise format. Basically, if it's a 2 to 1 slope, I want it to read 2:1 or if it's a 2.5 to 1 to read as 2.5:1.
I found this blog showing how to do it for line slopes, but I think it's not able to work using the run:rise format.
Does anyone know how to make this happen?
Basically, the same concept. The big difference here is that you won't be able to return the -1 because slopes can have valid negative slopes.
Instead, have the expression return the text height. If it's valid, return .1/12 and if it's invalid, return 0. Use that as the height of the text.