Include Text in Expression.
I need include one text in Expression for AutoCAD Civil 3D
My Expression: IF({Asymmetric Length 1}>1,({K Value}/{Profile Curve Length}*{Asymmetric Length 1}),-1)
I need this Expression: IF({Asymmetric Length 1}>1,(k1:{K Value}/{Profile Curve Length}*{Asymmetric Length 1}),-1)
K1 is Text for indicate the result for expression. I can not include this text in outside label because, while =-1, the label is invisible.
Adriano Oliveira
Diretor Soluções BIM MaxiCAD
MaxiCAD Soluções e Educação BIM.
Facebook | Twitter | LinkedIn
Solved! Go to Solution.
Solved by Eduardo.Soethe. Go to Solution.
Solved by troma. Go to Solution.
Do you have the whole text string "K1=<xxxxxxxxxxxx>" as one component in the label?
You should use the expression to set the text height for this component, and it should hide the whole thing.
If that doesn't answer your question then I'm not understanding you, sorry.
Mark Green
Working on Civil 3D in Canada
Adriano Oliveira
Diretor Soluções BIM MaxiCAD
MaxiCAD Soluções e Educação BIM.
Facebook | Twitter | LinkedIn
@Adriano_cad trie this steps
http://civil3dbrazil.blogspot.com/2015/02/valores-de-k1-e-k2-de-uma-parabola.html
Eduardo Soethe Cursino
Civil Eng. | BIM Specialist
Soethe Cursino Consultoria | BIM for Infrastructure | LinkedIn
Autodesk Certified BIM Specialist: Road and Highways Solution
AutoCAD Civil 3D Certified Professional
AutoCAD Certified Professional
__________________________________________________________________________
Se a resposta resolveu o seu problema, clique em Aceitar como Solução isso ajuda os outros usuários a encontrar rapidamente uma reposta e Kudos de gostou.
Joe.
I see you're a great expertise on Civil 3D, and I using now the 2020 version. It is about the same topic but some years later.
Do you know if now we can introduce text that can be the answer to an "if expression" when using labels?
In my case I have an alignment and I want to add in the labels the words "PI LF" (point of inflexion to the left) or "PI RT" (...to the right) depending on if the delta angle (deflection) is negative or positive. I create my expression to know the sign (negative to the left and positive to the right), because the command Civil 3D has for that angle (deflection) does not show the sign (positive or negative), jus shows the value.
That been said, how could I add the text depending on if the angle is negative or positive as something automatic. I can do it manually, using the "Edit Label Text" command, but that is not the idea.
Thank you Joe for any suggestion.
I think the easiest way is to have 2 labels, one with an "L" in the name and one with "R" in the label name. You can easily switch the label if you have the PROPERTIES box open. Look for the style box.
Bill
Thank you Bill for the quick answer.
Yes, that is another way I did not cite. I'm indeed looking for avoiding additional steps. It looks like Carlson has that routine in its software since long time ago. I thought Autodesk had done something already seeing some people have commented about the same from time behind.
Nonetheless, thank you again for the suggestion.
Mark Green
Working on Civil 3D in Canada
Any of you know how to get the expression that returns a text height and the resulted value into a table? The table labels the text heights from the IF expression, but I want the table to go a step further and show the value of each resultant text height( Right now in my expression I have a 0.09 for true and 0.0001 for false. I want those true and false values to be in a table)
Can't find what you're looking for? Ask the community or share your knowledge.