| Name | Explanation | Data Type |
in_table | The dataset that the new rule will be applied to. | Table View |
out_folder | The folder where the output .csv file will be saved. The name of the file will be taken from the in_table parameter value.
| Folder |
field | The name of the existing field the rule will be applied to. | Field |
where_clause (Optional) | An SQL expression that limits the rows that the attribute rule will be applied to. | SQL Expression |
create_seq (Optional) | Specifies whether database sequences will be created in the specified workspace. - CREATE—Database sequences will be created. This is the default.
- NO_CREATE—Database sequences will not be created.
| Boolean |
definition_method (Optional) | Specifies the method that will be used to define the format of the ID. - BUILDER— The ID format will be constructed using the id_builder parameter.
- TABLE—The ID format will be defined from a table using the id_table parameter.
- CODED_VALUES— A configuration entry and sequence will be generated for each combination of coded values from the selected fields.
| String |
id_builder [id_builder,...] (Optional) | A set of format options that will define the attribute rule. This includes an SQL expression that will be used to apply different formats and sequences per asset, as well as padding, prefix, and suffix values.
- Filter SQL—An optional SQL expression that will be used to determine whether the sequence will be applied to the row.
- Description—An optional description of the entry that will be added to the rule settings in the attribute rule.
- Sequence Name—The name that will be assigned to the database sequence. For enterprise geodatabases, the name must meet sequence name requirements for the database platform you're using and must be unique in the database. For file geodatabases, the name must be unique to the file geodatabase.
- Starting Value—The starting number of the sequence. If you do not provide a starting number, the sequence will start at 1. If you do provide a starting number, it must be greater than 0.
- Increment Value—Describes how the sequence numbers will be incremented. For example, if the sequence starts at 10 and the increment value is 5, the next value in the sequence is 15, and the next value after that is 20. If you do not specify an increment value, sequence values will increment by 1.
- Prefix—An optional string or value that will be placed before the sequence value.
- Suffix—An optional string or value that will be placed after the sequence value.
- Padding—An optional positive number that represents the number of digits in which zeros will be used to fill the unused digits. For example, a value of 5 will represent the sequence value of 1 as 00001.
- Separator—An optional value that will be used to join the prefix, sequence, and suffix.
- Sequence by lookup—An optional value that will be used to create unique sequences for each distinct value in the field.
| Value Table |
id_table (Optional) | A table or record set that defines the ID format. This includes the SQL expression that will be used to apply different formats and sequences per asset, as well as padding, prefix, and suffix values. The table must include the following fields: - WhereClause—An optional SQL expression that will be used to determine whether the sequence will be applied to the row.
- Description—An optional description of the entry that will be added to the rule settings in the attribute rule.
- SequenceName—The name that will be assigned to the database sequence. For enterprise geodatabases, the name must meet sequence name requirements for the database platform you're using and must be unique in the database. For file geodatabases, the name must be unique to the file geodatabase.
- StartingValue—The starting number of the sequence. If you do not provide a starting number, the sequence will start at 1. If you do provide a starting number, it must be greater than 0.
- IncrementValue—Describes how the sequence numbers will increment. For example, if the sequence starts at 10 and the increment value is 5, the next value in the sequence will be 15, and the next value after that will be 20. If you do not specify an increment value, sequence values will increment by 1.
- Prefix—An optional string or value that will be placed before the sequence value.
- Suffix—An optional string or value that will be placed after the sequence value.
- Padding—An optional positive number that represents the number of digits in which zeros will be used to fill the unused digits. For example, a value of 5 will represent the sequence value of 1 as 00001.
- Separator—An optional value that will be used to join the prefix, sequence, and suffix.
- IntersectClass—An optional value that contains the full path to an intersecting dataset.
- ClassIDField—An optional field value that will be used to create unique sequences for each distinct value in the field.
- ClassFilter—An optional SQL expression that will be used to determine whether the sequence will be applied to the row in the intersecting dataset.
| Record Set |
id_coded_value [id_coded_value,...] (Optional) | The fields that will be used to generate an SQL expression and configuration for an ID. | Field |
intersect_class_field [intersect_class_field,...] (Optional) |
The features from the intersecting dataset that will be used to generate unique ID values in the input features. The optional field value from the intersecting dataset will be used for the sequence by lookup value. | Value Table |