Author Topic: Control Trailing Zeros in Civil 3D Contour Labels  (Read 10459 times)

0 Members and 1 Guest are viewing this topic.

caddcop

  • Guest
Control Trailing Zeros in Civil 3D Contour Labels
« on: December 16, 2013, 08:47:28 PM »
Is there any way to have a contour label style that truncates trailing zeros? I tried a bunch of different expressions, but there was no joy in Mudville.
We are working a metric project and the Project Manager wants 0.25 spacing for minor contours and 2 M spacing on major contours. The result is there are some labels ending in .50, some ending in .00 (odd minor), some ending in .25 and .75 and some with no decimal (even major).

And while I'm at it, what are user contours and how does one use them?

sdunn

  • Newt
  • Posts: 90
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #1 on: December 17, 2013, 12:16:12 PM »
You need to change the precision of the elevation label style.  Right click on the style as shown and choose edit.
Once in the editor choose the layout tab and then select the component you want to edit. 


Select the contents property and click the button to edit the contents. 
Highlight the field on the right, change the precision on the left and then click the arrow button to update the field. 
Click ok to exit.

caddcop

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #2 on: December 17, 2013, 07:24:27 PM »
I need to drop one zero on some labels and two zeros on other labels and have some that need to retain 2 decimal places. This cannot be done using the simple precision setting.
And since some whole numbers are still minor contours, even a separate setting for major contours leaves some contours with two trailing zeros.

sdunn

  • Newt
  • Posts: 90
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #3 on: December 18, 2013, 09:44:48 AM »
You could still do this with styles, I think.  The attached image shows major spacing at 2 feet and minor at .25 feet.  If this isn't what you are looking for, can you post a drawing or image of what you need done manually?

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #4 on: December 18, 2013, 10:06:28 AM »
Stacy, I take it they don't want to see the 649.00 or 649.50, instead these should read 649 & 649.5

sdunn

  • Newt
  • Posts: 90
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #5 on: December 18, 2013, 10:19:30 AM »
edit2

I have attached a drawing showing how to do this with a label style that has 4 components and a few expressions.

These expressions check for the elevation of the surface and set the text height to something visible if true, otherwise they are set to a very small height that won't be seen when plotted.  These expressions are added to the contour label style section.

if({Surface Elevation}-(TRUNC({Surface Elevation}))=.5,0.01,0.0000004)

if({Surface Elevation}-(TRUNC({Surface Elevation}))=.25,0.01,0.000004)

if({Surface Elevation}-(TRUNC({Surface Elevation}))=.75,0.01,0.000004)

if({Surface Elevation}-(TRUNC({Surface Elevation}))=0,0.01,0.000004)

« Last Edit: December 18, 2013, 11:13:41 AM by sdunn »

sdunn

  • Newt
  • Posts: 90
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #6 on: December 18, 2013, 11:14:38 AM »
Attached drawing example

caddcop

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #7 on: December 20, 2013, 10:39:21 PM »
 :lol: When I am back in the office, I will have to try this.
When I looked at expressions, I was hoping that they could return a string or a formatted number. But alas, there are limits.
I guess there is always the Wish List!
As powerful as these labels are, I guess we can still find limitations.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #8 on: May 05, 2014, 03:22:45 PM »
I am trying to do something similar to this, but to decide whether to show it to the nearest foot or tenth. Everything works fine (expression wise), but I put in 0.01 for my text height (confused why it shouldn't be 0.1), but it's putting my text in at 0.12 times the scale, rather than 0.1.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #9 on: May 05, 2014, 03:27:57 PM »
Ok, instead of using 0.01, I used (1/120) and it works.
Not sure why it goes by tenths when you just plug in a value, but by inches when using an expression.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Dent Cermak

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #10 on: May 12, 2014, 01:55:58 PM »
The use of the terms "major" and "minor". 0.25 "minors"? 2 "majors"? Alas, the "Dumbing down of America" at its best. "We don't need no stinking standards!!"
Get pizzed all you want guys, but "Whoop!! Dere it is!!"

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #11 on: May 12, 2014, 02:26:23 PM »
The use of the terms "major" and "minor". 0.25 "minors"? 2 "majors"? Alas, the "Dumbing down of America" at its best. "We don't need no stinking standards!!"
Get pizzed all you want guys, but "Whoop!! Dere it is!!"
Autodesk has had it wrong for so long that some think it is now right.


Intermediate Contour Interval. These lines have no numbers. They appear between index contour line which have numbers.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dent Cermak

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #12 on: May 12, 2014, 06:55:45 PM »
Refreshing to hear the correct terms.
AutoCAD is built for and by  Archi's and they have no clue about contours.
How many here know what a depression contour is and how to depict it on a map? Very few. Rarely see then on topos by "experts".
I even had one "expert" tell me to re-plot his drawing because the ink smeared or something on some of the contours. Gave him the Bohemian Hand Salute and carried on.

cadtag

  • Swamp Rat
  • Posts: 1152
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #13 on: May 12, 2014, 08:08:04 PM »
The use of the terms "major" and "minor". 0.25 "minors"? 2 "majors"? Alas, the "Dumbing down of America" at its best. "We don't need no stinking standards!!"
Get pizzed all you want guys, but "Whoop!! Dere it is!!"
Autodesk has had it wrong for so long that some think it is now right.


Intermediate Contour Interval. These lines have no numbers. They appear between index contour line which have numbers.

The problem being that over half my plans would only show one labeled contour (or none) if I followed that process
The only thing more dangerous to the liberty of a free people than big government is big business

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #14 on: May 12, 2014, 08:47:32 PM »
OR change the contour interval so that you have more Index Contours.....

It's a function of the interval.

ETA

I've set plans where the Contour Interval was 0.5'
With Intermediate Contours at 0.1'

Plenty of contour lines with labels on them.
« Last Edit: May 12, 2014, 09:16:50 PM by mjfarrell »
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dent Cermak

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #15 on: May 13, 2014, 10:32:17 AM »
By definition an "Index" contour is every fifth contour line. It is an "index mark" to aid in figuring out elevation changes quickly. Index marks are used throughout industry to facilite many processes. Changing the definition eliminates that process and leads to errors.
Nubmber two, if your pals cannot determine elevations without intermediate contours being labeled, they do not need to be in their field.
A proper map will have adequate spot elevations to facilitate this function. And, in really flat areas, there is no rule that says additional values cannot be placed on the intermediate contours. I do this often because I know some of my clients know nothing about contours and really struggle at the simplest of interpolations.
Just as there are specific rules and practices in proper engineering detail drawings, there are rules in cartography that are often overlooked by the unskilled and uninformed. This is becoming a major problem with the implementation of several GIS systems designed by rookies that promise impossible accuracies using their products. I tend to snicker when a salesperson "guarantees" 1 cm accuracies.
Today there are a lot of guys knocking out contours that do not understand the simple concept that index contours exist and should be represented with different line weights. (Line weight??WTF??)
I often wonder how many here (other than Mr. Farrell) know how many types of contours there are and how to properly represent them ?
If you are going to try to practice my craft, please learn how to do it properly.
You really wouldn't want me to do your architectural drawings. I would end up violating the PRIME DIRECTIVE of an architectural drater and have all of my interior dimensions add up to the total displayed exterior distance. This, obviously, is a BIG no-no in the architectural world.  :-D

cadtag

  • Swamp Rat
  • Posts: 1152
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #16 on: May 13, 2014, 10:45:20 AM »
Source please?

Not trying to argue about anything here, just wanting to learn, and if there's a documented standard, ANSI, ASTM, or otherwise, I'd like to know about it.
The only thing more dangerous to the liberty of a free people than big government is big business

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #17 on: May 13, 2014, 10:48:12 AM »
I often wonder how many here (other than Mr. Farrell) know how many types of contours there are and how to properly represent them ?
Contours!!! I can't remember the last job I did that had contours in it.
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #18 on: May 13, 2014, 12:07:45 PM »
Source please?

Not trying to argue about anything here, just wanting to learn, and if there's a documented standard, ANSI, ASTM, or otherwise, I'd like to know about it.

My original definition was from a USGS publication

However it might not ALL be in a book somewhere:

Cartography is the study and practice of making maps. Combining science, aesthetics, and technique, cartography builds on the premise that reality can be modeled in ways that communicate spatial information effectively.


It is as much a science as an art-form.
« Last Edit: May 13, 2014, 12:15:18 PM by mjfarrell »
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dent Cermak

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #19 on: May 13, 2014, 01:55:32 PM »
Source please?

Not trying to argue about anything here, just wanting to learn, and if there's a documented standard, ANSI, ASTM, or otherwise, I'd like to know about it.


Source???
How about 45 years of experience?
How about FM 21-26,"Map Reading?
How about FM 21-31, "Topographic Symbols"
How about "Cartographic design and Production by J. S. Keates
How about "Elements of Cartography" by Arthur Robinson, Randall Sale and Joel Morrisson?
How about "Survey Drafting" by Gurdon H. Wattles?
How about all of the USGS pubs?
How abour all of the DMA pubs?
How about the FACT that all of these documents are in agreement?
Throw in all the ACSM/NSPS goodies and it's all clearly spelled out.
For those of us that have drawn maps using the negative engraving techniques, there are even manuals that lay out the line widths of each and every feature.

Your implecation is that I just make this snit up. Far from it. Unlike so many others, I know my CRAFT.

I am getting ready to start a new project for the U. S. Army Corps of Engineers. The "standards" that I must comply with for just this one job are:
EM-1110-1-1000
EM-1110-1-1002
EM-1110-1-1003
EM-1110-2-1009
EM-1110-1-1005
EM-1110-2-1003
EM-1110-1-2909
and A/E/C CADD Standards AND the Minimum Technical Standards for the State of Alabama.
There used to be just one manual for it all -TM-23A, but as things got more complex and the old hands retired, the manuals were re-written into the multiple volumes we have today. Yeah. I'd like to see it all in one book, but I don't think my office is big enough to hold such a volume.

« Last Edit: May 13, 2014, 02:07:21 PM by Dent Cermak »

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #20 on: May 13, 2014, 02:11:59 PM »
Pack your lunch kiddies, here comes the bus!

And Dent is taking you to school!    :police:
Be your Best


Michael Farrell
http://primeservicesglobal.com/

cadtag

  • Swamp Rat
  • Posts: 1152
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #21 on: May 13, 2014, 02:45:27 PM »
Source please?

Not trying to argue about anything here, just wanting to learn, and if there's a documented standard, ANSI, ASTM, or otherwise, I'd like to know about it.

...

Your implecation is that I just make this snit up. Far from it. Unlike so many others, I know my CRAFT.



No such implication intended, and I regret that you took it that way.  to repeat myself.... 'just wanting to learn'.

And thanks for the sources.  I'm more of a Harlan Alltrades than Cary Cartographer, but it's one of the parts of my job I enjoy more than WWTP  design.  That'll make for some not-so-light reading.
The only thing more dangerous to the liberty of a free people than big government is big business

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #22 on: May 13, 2014, 02:51:41 PM »
I'll throw you a copy of FM 21-26
right here. I forgot about this little gem that I was exposed to in Basic Training and Later in Survival Training, and
yet again in Jungle Warfare course.


https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCkQFjAA&url=http%3A%2F%2Fwww.uvm.edu%2F~goldbar%2FFM3_25.26.pdf&ei=OmlyU4M7iefwAfPzgaAK&usg=AFQjCNGULSRODikdniOfOLFB4bpXlohSmA&sig2=1Tb2piITLPnaJ4Z7feB9tw&bvm=bv.66330100,d.b2U
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dent Cermak

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #23 on: May 13, 2014, 04:36:58 PM »
Did you know that the ONLY test that a candidate in OCS MUST pass in order to get his/her commission is the Map Reading  test? FM 21-26 is a Bible to all new 2LT's. Thus the saying that "The most dangerous weapon in the world is a 2LT with a map in his/her hand.".



http://www.enlisted.info/field-manuals/fm-1-100-aviation-operations.shtml

All of the FM's can be downloaded from this site.
« Last Edit: May 13, 2014, 04:40:34 PM by Dent Cermak »

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #24 on: May 13, 2014, 05:01:06 PM »
"The most dangerous weapon in the world is a 2LT with a map in his/her hand.".


I know this to be true from a few days of fumbling around in the jungle of Panama under direction of a LT, that had previously
only been in command of his desk!
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dent Cermak

  • Guest
Re: Control Trailing Zeros in Civil 3D Contour Labels
« Reply #25 on: May 13, 2014, 06:48:58 PM »
It could have been worse. That 2LT could have been me. I still get some "remember when....." tales from my old enlisted folks.  :oops: