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

Expression for LinkLength

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Lisa_Pohlmeyer
417 Views, 2 Replies

Expression for LinkLength

I'm trying to create an expression to label a LinkLength in my section view.  I only want the label to show if the LinkLength is greater than zero.  Our subassembly for a ditch bottom width targets a polyline, and the label style dimensions correctly, however, of we choose to use a V bottom ditch in that area by setting the link width to 0, the label style shows 0.  I'd like to set it up to not show at all if the width is set to 0.  See attached pic.  My current label style has line components, but I can certainly change that if required.



Lisa Pohlmeyer
Civil 3D User
Website | Facebook | Twitter

2 REPLIES 2
Message 2 of 3

You could create an expression that checks the value of the width and returns the link width if it is greater than zero otherwise it returns -1. Your label content would then be set to not hide negative values. Expression - if({Link Length}>0,{Link Length},-1)


If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 3 of 3

Perfect! Thanks. I was trying to just put a space instead of a value, like you can in Excel. I didn't think of your option.


Lisa Pohlmeyer
Civil 3D User
Website | Facebook | Twitter

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report