Cannot Display Leading Zeros in a Bearing

Cannot Display Leading Zeros in a Bearing

JohnPachol
Enthusiast Enthusiast
2,615 Views
14 Replies
Message 1 of 15

Cannot Display Leading Zeros in a Bearing

JohnPachol
Enthusiast
Enthusiast

I couldn't find a post where this problem may have been discussed already.  So, I thought I would share it. 

I had a problem with getting the leading zeros to display for degrees less than 10 in Civil 3D 2018.  Even though the "Drop leading zeros" value is "no", the leading zero will not display.  The reason for this is that the OOTB style for the bearing of a line does not have the "Drop leading zeros" parameter in the text string field.  This can be seen on the attached screen shot, OOTBTextEditor.png  (compare it with CorrectedTextEditor.png and notice the DZN parameter is missing). 

To get the parameter into the text string field, change the "Drop leading zeros" value to "yes" and then replace the text string field.  The text string field will now list the missing parameter as DZY.  Now change the "Drop leading zeros" value back to "no" and replace the text string field again.  The parameter will now be DZN and the leading zeros will display.

 

Accepted solutions (1)
2,616 Views
14 Replies
Replies (14)
Message 2 of 15

BrianHailey
Mentor
Mentor

Three questions, 

  1. Did you press the right pointing arrow next to the properties pulldown after you made the changes? I have to ask.
  2. What version of Civil 3D are you using?
  3. What type of label is it? I checked line labels and parcel labels and they both are working for me.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Likes
Message 3 of 15

JohnPachol
Enthusiast
Enthusiast

1. Yes.  (this time I did, but many, many times in the past I forget).  That is what I trying to describe with "replace the text string field."

2. Civil 3D 2018.

3. Annotate tab, Labels & Tables panel, Add Labels, Feature = Line and Curve, Line label style

0 Likes
Message 4 of 15

BrianHailey
Mentor
Mentor

It works fine for me in 2018. Check your updates.

 

 

 

 

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Likes
Message 5 of 15

MMcCall402
Mentor
Mentor

I think you may be referring to a post yesterday about dropping the leading zeros from a bearing supplied by an expression.  In that instance the drop leading zeros wasn't an available option for the expression's value. The area for that selections was grayed out a read "N/A".  The solution was to manually type the syntax of the text/code for the entry and enter the DZN into the code before the OF portion of the code.

 

Post from yesterday

https://forums.autodesk.com/t5/civil-3d-forum/line-label-cardinal-direction/m-p/8282304#M381408

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

0 Likes
Message 6 of 15

AllenJessup
Mentor
Mentor
Accepted solution

I have seen problems with this before. My belief is that the incorrect string would have been created in an earlier version of Civil 3D and "brought up" to 2018. I've found a lot of Label Styles that are missing more modern setting in the text string.

If you highlight the incorrect text with Drop Zero set to No and hit the blue arrow. Does it add the DZ field? 

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 7 of 15

Anonymous
Not applicable

Worked for me.  Make sure to hit the right arrow, and apply before closing out of the style composer.

 

Are you using an OOTB template?

0 Likes
Message 8 of 15

JohnPachol
Enthusiast
Enthusiast

Version 12.0.1386.0 AutoCAD Civil 3D 2018.2 Update

0 Likes
Message 9 of 15

JohnPachol
Enthusiast
Enthusiast

Interesting, but no I didn't write or modify any expressions.  However, I didn't realize that I could have actually just typed the syntax into the text of the style to get the DZN code.  What is the EN code?  When I went through the steps outlined in my original post, it not only supplied the DZN code, it always supplied the EN code.  I couldn't figure out why it did that.

0 Likes
Message 10 of 15

MMcCall402
Mentor
Mentor

EN appears to be the code for Drop decimal for whole number.   (options are EN or EY)

 

The codes listed left to right match the order of the properties from top to bottom.

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

Message 11 of 15

JohnPachol
Enthusiast
Enthusiast

That is it! Yes, when I highlight the incorrect text with Drop Zero set to No and hit the blue arrow, it added the DZ field.  This is one of those famous roadway projects we all have heard about.  I started it in Feb. 2014 using Civil 3D 2013 (it may have actually been Civil 3D 2012).  It is scheduled to be let in Feb. 2019, five years of design/redesign time.  The DWG file went through however many versions of Civil 3D.

Message 12 of 15

JohnPachol
Enthusiast
Enthusiast

The OOTB style was probably from Civil 3D 2013 or 2012, saved into several new versions, ending up in Civil 3D 2018.  See my response to Allen Jessup's post.

0 Likes
Message 13 of 15

AllenJessup
Mentor
Mentor

@JohnPachol wrote:

 This is one of those famous roadway projects we all have heard about.  I started it in Feb. 2014 using Civil 3D 2013 (it may have actually been Civil 3D 2012).  It is scheduled to be let in Feb. 2019, five years of design/redesign time.  The DWG file went through however many versions of Civil 3D.


Welcome to the club! I'm working on a project the was started in the mid 1990's in Softdesk (Land Desktop before Autodesk bought it). It was started in imperial, converted to metric and now I'm converting it back to imperial. At times I want to tear my hair out. What's left of it! One of the reasons I'm here answering questions. To get a break from it.

 

BTW. this is also why it's a good ides to update styles when editing a template with old styles in it.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 14 of 15

JohnPachol
Enthusiast
Enthusiast

@AllenJessup wrote:

@JohnPachol wrote:

 This is one of those famous roadway projects we all have heard about.  I started it in Feb. 2014 using Civil 3D 2013 (it may have actually been Civil 3D 2012).  It is scheduled to be let in Feb. 2019, five years of design/redesign time.  The DWG file went through however many versions of Civil 3D.


Welcome to the club! I'm working on a project the was started in the mid 1990's in Softdesk (Land Desktop before Autodesk bought it). It was started in imperial, converted to metric and now I'm converting it back to imperial. At times I want to tear my hair out. What's left of it! One of the reasons I'm here answering questions. To get a break from it.

 

BTW. this is also why it's a good ides to update styles when editing a template with old styles in it.


Wow! That's incredible!  I've been doing this type of work since DCA days (not too long after AutoCAD Release 9) and, except for one, I have never had a project run over one or two years; yours is unimaginable.  If I had been working on a project since the mid 1990's, I wouldn't have survived to make this post.

 

Update styles?  Do mean that it is good practice to re-write every individual style from scratch using the new release templates just in case the style format changes?

0 Likes
Message 15 of 15

AllenJessup
Mentor
Mentor

No. I don't rewrite each one. But if I see something is missing or looks wrong. I open the template and use the same procedure. Edit the style, highlight the text and hit the blue arrow. This will update the style with any missing options.

 

I started with AutoCAD in 1986 and with DCA when I moved to my current job in 1990. But I started all this manually plotting points on graph paper that were calculated on a Wang 700 Surveying System. Then a program COGOXL. You had no visual interface but could create a batch file to plot points, lines and notes on a windowshade plotter. Just before we got AutoCAD. We used ProDesign. A primitive version of CAD.

 

Wang Surveying SystemWang Surveying System

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature