Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Include Text in Expression.

27 REPLIES 27
SOLVED
Reply
Message 1 of 28
Adriano_cad
4121 Views, 27 Replies

Include Text in Expression.

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


some text
27 REPLIES 27
Message 21 of 28
troma
in reply to: Adriano_cad

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

Message 22 of 28
Adriano_cad
in reply to: troma

Hello, yes I understand, that's right. Goodbye and thank you -- *Adriano Oliveira* 51.9167-8397 adriano.cad@gmail.com / suporte@maxicad.com.br Authorized Author / Autodesk Authorized Instructor / Consultor de Aplica??o Autodesk Expert Elite Pr?mio Instructor Quality Award pela Autodesk Inc Suporte MaxiCAD Inform?tica www.maxicad.com.br www.maxicad.com.br/blog http://br.linkedin.com/pub/adriano-oliveira/42/914/774


Adriano Oliveira
Diretor Soluções BIM MaxiCAD
MaxiCAD Soluções e Educação BIM.
Facebook | Twitter | LinkedIn


some text
Message 23 of 28

@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.
Autodesk Community

Message 24 of 28
carlos.chuecos
in reply to: Joe-Bouza

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.

 

 

 

Message 25 of 28
wfberry
in reply to: carlos.chuecos

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

 

Message 26 of 28
carlos.chuecos
in reply to: wfberry

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.

 

Message 27 of 28
troma
in reply to: carlos.chuecos

Yes you should be able to make this work automatically, so that there are no additional steps after you add the labels. Please read this conversation for suggestions. You can make a label with two text components; one for left and one for right. Each one can appear and disappear at will by using expressions to control the text height.

Mark Green

Working on Civil 3D in Canada

Message 28 of 28
MSchille-1994
in reply to: BrianHailey

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)

Attitude, not Aptitude, Determines Altitude

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report