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: 

Help with Expressions in label

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
terryl
379 Views, 8 Replies

Help with Expressions in label

Need help on writing an expressions in a label style. I have part of it working, it is {Rim to Sump Height}-6 now I would like it to put 0 if it is 0 or less but I don't know how to do it.  It works great on positive number but I want it to put 0 if it is a negative number.

Thanks Terry

Civil 3D 2021
Dell 5510
Win 10 Pro X64
Intel Xeon 3.2 GHz
32 GB ram
NVIDIA Quadro 4000
8 REPLIES 8
Message 2 of 9
troma
in reply to: terryl

Maybe

 

MAX(0, ({Rim to Sump Height}-6))


Mark Green

Working on Civil 3D in Canada

Message 3 of 9
troma
in reply to: terryl

Or

 

IF( {Rim to Sump Height}-6>0,  {Rim to Sump Height}-6 , 0)


Mark Green

Working on Civil 3D in Canada

Message 4 of 9
terryl
in reply to: troma

Thanks

Civil 3D 2021
Dell 5510
Win 10 Pro X64
Intel Xeon 3.2 GHz
32 GB ram
NVIDIA Quadro 4000
Message 5 of 9
troma
in reply to: terryl

Or

 

((SQRT(SQR( {Rim to Sump Height}-6)))+( {Rim to Sump Height}-6))/2


Mark Green

Working on Civil 3D in Canada

Message 6 of 9
troma
in reply to: terryl

No problem.  I was starting to have fun with that!


Mark Green

Working on Civil 3D in Canada

Message 7 of 9
terryl
in reply to: troma

I have another label I have not been able to figure out.  How to label two differnt point on one alingment,  Like Sta 2+50 to 3+25 in one label.  any ideas?

Civil 3D 2021
Dell 5510
Win 10 Pro X64
Intel Xeon 3.2 GHz
32 GB ram
NVIDIA Quadro 4000
Message 8 of 9
troma
in reply to: terryl

Not off the top of my head, sorry.  Maybe a little more detail and a picture will help.

You'll probably be better off starting a new discussion thread.  People look at this one as solved, but if you start a new one more people will jump in to help.


Mark Green

Working on Civil 3D in Canada

Message 9 of 9
terryl
in reply to: troma

ok thanks for the help.

Civil 3D 2021
Dell 5510
Win 10 Pro X64
Intel Xeon 3.2 GHz
32 GB ram
NVIDIA Quadro 4000

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report