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: 

Suppress Trailing Zeros in Surface Slope Label

1 REPLY 1
Reply
Message 1 of 2
ArchD
335 Views, 1 Reply

Suppress Trailing Zeros in Surface Slope Label

I'm trying to suppress trailing zeros in a surface slope label in run:rise format. Basically, if it's a 2 to 1 slope, I want it to read 2:1 or if it's a 2.5 to 1 to read as 2.5:1.

 

I found this blog showing how to do it for line slopes, but I think it's not able to work using the run:rise format.

 

Does anyone know how to make this happen?

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
1 REPLY 1
Message 2 of 2
BrianHailey
in reply to: ArchD

Basically, the same concept. The big difference here is that you won't be able to return the -1 because slopes can have valid negative slopes.

 

Instead, have the expression return the text height. If it's valid, return .1/12 and if it's invalid, return 0. Use that as the height of the text.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report