Jump to content

How to force a 4 digit Parcel Number?


Alaskachick

Recommended Posts

I have a grid of parcels and I want to number them from 0101 to 9999. Keeping the 4 digits is important. Unfortunately, I can't seem to get a parcel number to have a preceding zero.

 

This is what I have tried so far: I added a zero before the in the label style and that works great until I get to parcel #1001 which then shows up as 01001. I could have 2 different label styles, one with the 0 and one with only , but that wouldn't make the parcel #'s 4 digits in extracted data tables, just on the label.

 

Any ideas to force 4 digits?

 

I am using Civil 2010.

Link to comment
Share on other sites

It can be done, but it's amazingly counter-intuitive...

 

1) Create an Expression in Parcel -> Label Styles -> Area that divides your Parcel Number by 10000 and returns the result as a double.

 

2) In your Area Label Style, in the text component editor, add your new value. For formatting, tell it to format to four decimal places, then for "Output", select "Right of decimal". (See attached image.)

zero_padding.jpg

Link to comment
Share on other sites

That worked great to fix the label! Thank you.

Now how to change the formatting of the parcel number. In the properties it is still reading 101 instead of 0101 like the label.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...