Title Generate ID
Creates an attribute rule to populate a unique ID on tables and feature classes.
Leverages database sequences for a unique id
License
Standard
GenerateID (in_table, out_folder, field, create_seq, definition_method, {where_clause}, {builder_values}, {rec_set}, {coded_value_fields})
| Parameter | Explanation | Data Type |
|---|---|---|
| in_table |
Dialog Reference
The table or feature class that will have the new rule applied. |
GPTableView |
| out_folder |
Dialog Reference
The folder where the output CSV will be saved. The name of the file is taken from in_table. |
DEFolder |
| field | Field | |
| create_seq |
Dialog Reference
Option to create the database sequences in the workspace. A python file with the arcpy calls is created in the output folder regardless of this option |
GPBoolean |
| definition_method |
Dialog Reference
The method used to define the format of the ID.
|
GPString |
| where_clause (Optional) |
Dialog Reference
SQL Expression to filter records. Only records that satisfy the query will be calculated. |
GPSQLExpression |
| builder_values (Optional) |
Dialog Reference
Interactively define the ID format. This includes the sql used to apply different formats and sequences per asset, as well as padding, prefix and suffix values.
|
GPValueTable |
| rec_set (Optional) |
Dialog Reference
Input the ID formats from a table. Use the Helper-Field Combos to SQL tool to generate this tables and build out the sql combos |
GPRecordSet |
| coded_value_fields (Optional) |
Dialog Reference
Use the distinct combinations of the coded values from the fields to generate a SQL expression and configuration for an ID. |
Field |