Number Generators are designed to assist the user in populating a feature class field with a unique value. Fields in a feature class can be setup so that the Lucity GIS extension will populate the field with a unique value. When features are created or modified in an ArcMap edit session, if the field configured with the number generator doesn't contain a value the Lucity GIS extension will populate this field with the next incremental value.
Triggering a Number Generator
There are three ways in which a number generator is triggered:
Within an ArcMap edit session, when a feature is created, or is edited and doesn't have unique identification number.
Within an ArcMap edit session using the "Force Sync" tool on the Lucity GIS Edit toolbar. This tool is typically used if the data was imported using a non-Lucity import tool or was added during a non-Lucity edit session.
When the Lucity Data loader tool is used.
Considerations
Do I want this number to have a prefix?
If so is the prefix set, or does it change depending on location?
What would the next number in the feature class be?
Select the feature class configuration to setup a number generator for, from the tree on the left hand sid of the Geodatabase Configuration form.
Right-click on the Feature Class and select Add > Number Generator.
An entry will be added under the Feature class configuration and the Number Generator form will be displayed:
*Populate the Field to AutoNumber- This is the field that will be auto-numbered.
This should be a text field, large enough to support the numbers that will be generated based on the settings on this form.
Populate the Buffered Number Length. This causes the number to contain buffered zeros. Enter the number of characters desired.
Optional. Example, if a buffered length of 5 is entered, and if the auto-number generated is 985, the resulting auto number that will be populated is 00985. This may allow for easier number sorting.
Include Prefix Settings.
None: This will be marked by default. If this button remains marked, there will be no Prefix for this AutoNumber field.
Use Set Prefix: This will allows specifying a prefix in the next number gird and a separator character.
Use a polygon feature class to create a prefix: Uses a Polygon Feature class field to generate a prefix based on a features spatial relation to the polygon feature class.
Polygon Feature Class: The polygon feature class that the autonumber prefix is based on.
Field that Contains prefix value: The field in the polygon feature class that contains the value that will be used as a prefix.
Note: The Polygon Feature Class does not have to be related to Lucity but it MUST be in the same geodatabase as the Lucity Features
Separator Character: Optional. Characters entered into this field will be between the Prefix and Autonumber. This is available only if using a prefix.
Click the to set the correct start number.
If the prefix setting option is set to None or Use Set Prefix then only one next number record is allowed in the grid.
If the prefix setting option is set to Use a Polygon Feature Class then an unlimited number of next numbers can be set. One for each polygon in the feature class.
Note: When a new feature is created in the selected feature class if no Next Number is set the number generator will set the new feature to 1 and set a new Next Number to 2, and continue from there. The same is true if a Polygon feature class is used.
This information will be saved when you click on a different feature class.
Note: Number Generator can be edited anytime after saving them
To delete the number generator from a feature class, select the number generator listed under the feature class from the tree on the Geodatabase Configuration form.
Right-Click on the number generator and choose Delete.