Hi everybody,
I am trying to set a curve label for an alignment,
where a specific text "TYPE A" would be shown whenever the radius is 20,
or "TYPE B" whenever the radius is 40.
I know that I can't have a text as an expression result,
and that the only way would be to have my results as "TYPE 1" or "TYPE 2",
as a result of 1 or 2 using a condidtional IF function in the expression and the "TYPE " entered inside the Label,
but I would really like to find a way to get TEXT as a result.
Any ideas?
thank you
Solved! Go to Solution.
Solved by Joe-Bouza. Go to Solution.
Solved by AllenJessup. Go to Solution.
Are you using the conditional formula to control the text height?
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.
thank you both very much,
but unfortunately these have nothing to do with my case
no text height
I'm afraid I wasn't clear enough, so I'll give it another try:
I have an alignement with curves that have radius 20m or 40m and only those (no other radius applied)
and
I'd like a curve label showing the text "TYPE A" when Radius is 20m, and "TYPE B" when R=40m.
any ideas?
THIS is probably closer to what you want. I ended up using Stacy Dunn's 2 text method. In case A force Type B text to an extremely small text height and in case B Type A will be small.
Allen
Allen Jessup
CAD Manager - Designer
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.
Until something better comes along you have to control it with text height.
Make text component20 and Component40 both report the crve radius.
you need two expression one for 20 and one for 40 each checks the radius
for the 20 if (radius =20,textheight, 0)
and 40 if (radius =40,textheight, 0)
then in the label composer set the text height for each with the expression
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,
Can you use 0? I was under the impression you had to use a non-zero number like 0.0001.
Allen
Allen Jessup
CAD Manager - Designer
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.
thank you very much! I got it to show what I wanted,
although I would call that a workaround rather than a solution...
and I'd like to ask the developers for a "programmaticaly" proper solution.
after all, wouldn't it be nice to have the "static text" option in the expressions function list?
🙂
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.
A text height of -1?
Allen
Allen Jessup
CAD Manager - Designer
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.