By default Civil Pro creates a 9 digit Lot number based on the Work Type, Area Code and an auto-incrementing index (WWAAAAIII).For example, the third lot raised with Work Type SG and Area Code MC01 will be labelled SGMC01003 using the default settings.
You can customise how this Lot number is created by setting a Project Option for your custom Lot number definition.
Custom Lot Schema (basic)
• #W(<int>) = the Lot’s Work Type – truncated to <int> characters long
• #A(<int>) = the Lot’s Area Code
• #I(<int>) = an auto-increment index (must be the last element of the schema)
The default lot numbering in Civil Pro is actually implemented using this code and is represented as #W(2)#A(4)#I(3)
#W(2)#A(4)#I(3) | SGMC01003 (the Civil Pro default) |
#W(2)-#A(4)-#I(3) | SG-MC01-003 |
Lot#I(3) | Lot003 |
#W(2)-#A(2)-#I(3) | SG-MC-003 |
#W(2)#I(3) | SG003 |
Custom Lot Schema (Custom Registers)
For more complex configurations where additional information needs to be encoded in the lot number, Custom Registers can be created. As many registers can be used as is required to make increasingly sophisticated lot numbering rules. You can specify this in your custom lot def as the following
• #CR[<reg shortcode>](<int>) = the Lot’s custom register item’s shortcode, for the register with reg shortcode – truncated to <int> characters long.
For example, if the user has the following custom register:
- Separable Portions (shortcode SEP)
- Separable portion 1 (shortcode SEP1)
- Separable portion 2 (shortcode SEP2)
- Separable portion 3 (shortcode SEP3)
If the lot from the previous example is allocated to Separable portion 2, then using a custom lot string like #W(2)-#A(4)-#CR[SEP](4)-#I(3) would include the entry from the SEP custom register, in this case SEP2. The lot number would be SG-MC01-SEP2-003
NOTE: Since version 11.173 Primary Tags no longer server any useful purpose, and can completely be replaced by Custom Registers. compatibility is maintained for existing projects, but it is not recommended to continue using these in new projects as they will eventually be removed from the application
• #P(<int>) = () a Primary Tag (requires that showPrimaryTag be set to “true” in the constants – refer Civil Pro Tags)
For example, the third lot raised with Work Type SG and Area Code MC01 will be labelled SGMC01003 using the default settings.