Skip to main content

Enable HydroID on Feature Creation

Description

Create attribute rule to populate HydroID on feature create (insert) operation. All selected input feature classes need to be contained in the same workspace. The assigned HydroID will be based on the 'LASTID' field value in the ApUniqueID table residing in the same workspace where the input feature class resides. For each selected input feature class, tool will add an attribute rule whose name is [layername]_hydroid_insert, so for a layer name = FPRiver, the attribute rule name would be fpriver_hydroid_insert.

If needed, the tool will do the following:

  1. Create the ApUniqueID table if one is not present in the required workspace.
  2. If the GlobalID is not implemented for the input feature class, the GlobalID field will be added and enabled.
  3. If HydroID field does not exist, it will be created.
  4. If an input feature class already has this attribute rule, this existing rule will be removed and new one created.

The tool returns the workspace containing the input feature classes.

Input Feature Classes One or many feature classes for which to apply HydroID assignment on feature creation. All these feature classes need to be contained in a single workspace. (Added 2022/09/22, 2023/08/07)

Usage

Parameters

Parameter NameTypeDirectionData TypeDialog Reference
Input Feature ClassesRequiredInputMultiple ValueOne or many feature classes for which to apply HydroID assignment on feature creation. All these feature classes need to be contained in a single workspace.
OperationRequiredInputStringOperation takes two values: Enable and Disable
  • Enable - Apply the attribute rule to selected layers.
  • Disable - Remove the attribute rule from selected layers.