AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Valued Contributor
Stuart_Telford
Posts: 78
Registered: ‎06-16-2010
Message 1 of 7 (596 Views)

Contour label truncating?

596 Views, 6 Replies
03-23-2011 02:39 PM

Hey just a quick question...how does one go about truncating surface contour elevation labels so they only show up to the tens place on the left side of the decimal (i.e. 50.25 instead of 5150.25)? 

 

Note:  I tried changing the rounding option under the style edit to "truncate" but that did not appear to change anything...?

 

Thanks

Stuart Telford
Civil 3D 2014 SP1 | Win 7 64-bit SP1
Intel Core i5-2500 @ 3.30GHz, 8GB Ram | ATI Radeon HD 5450
*Expert Elite*
Jeff_M
Posts: 4,450
Registered: ‎07-22-2003
Message 2 of 7 (590 Views)

Re: Contour label truncating?

03-23-2011 02:46 PM in reply to: Stuart_Telford
Valued Contributor
Stuart_Telford
Posts: 78
Registered: ‎06-16-2010
Message 3 of 7 (585 Views)

Re: Contour label truncating?

03-23-2011 03:27 PM in reply to: Stuart_Telford

Thanks a bunch! :smileyhappy:

Stuart Telford
Civil 3D 2014 SP1 | Win 7 64-bit SP1
Intel Core i5-2500 @ 3.30GHz, 8GB Ram | ATI Radeon HD 5450
Active Contributor
dretch
Posts: 29
Registered: ‎12-14-2012
Message 4 of 7 (320 Views)

Re: Contour label truncating?

10-31-2013 04:31 AM in reply to: Jeff_M

The link is no longer valid, just sends you to autodesk website

*Expert Elite*
Jay_B
Posts: 2,538
Registered: ‎09-15-2010
Message 5 of 7 (314 Views)

Re: Contour label truncating?

10-31-2013 04:38 AM in reply to: dretch

This can be done by applying an expression to the label style as covered in This thread.

Jay

C3D 2014 SP2
Win 7 Professional 64 Bit
*Expert Elite*
troma
Posts: 2,524
Registered: ‎05-21-2008
Message 6 of 7 (278 Views)

Re: Contour label truncating?

11-01-2013 09:54 AM in reply to: dretch
This one should do the trick:
{Surface Elevation}-100*FLOOR({Surface Elevation}/100)


Credit where credit is due! Give kudos or accept as solution whenever you can.

*Expert Elite*
mathewk
Posts: 2,757
Registered: ‎07-09-2003
Message 7 of 7 (269 Views)

Re: Contour label truncating?

11-01-2013 05:05 PM in reply to: Stuart_Telford
http://www.civil4d.com/2008/01/truncs-arent-just-for-elephants/
Matt Kolberg
Cansel - Autodesk Division
http://www.cansel.ca/
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.