Résumé
Modifies event behavior rules for the registered event layer or feature class.
Utilisation
The following event behavior rules are set by default:
Activity Rule Calibrate Route
Stay Put
Retire Route
Stay Put
Extend Route
Stay Put
Realign Route
Stay Put
Reassign Route
Stay Put
Carto Realign Route
Honor Route Measure
Syntaxe
arcpy.locref.ModifyEventBehaviorRules(in_feature_class, {calibrate_rule}, {retire_rule}, {extend_rule}, {reassign_rule}, {realign_rule})
Paramètre | Explication | Type de données |
in_feature_class | The event feature class. | Feature Layer |
calibrate_rule (Facultatif) | Specifies the event behavior rule defined for the calibrate activity.
| String |
retire_rule (Facultatif) | Specifies the event behavior rule defined for the retire activity.
| String |
extend_rule (Facultatif) | Specifies the event behavior rule defined for the extend activity.
| String |
reassign_rule (Facultatif) | Specifies the event behavior rule defined for the reassign activity.
| String |
realign_rule (Facultatif) | Specifies the event behavior rule defined for the realign activity.
| String |
Sortie dérivée
Nom | Explication | Type de données |
out_feature_class | The updated feature layer. | Feature Layer |
Exemple de code
The following script demonstrates how to use the ModifyEventBehaviorRules tool in a Python window.
# Name: Modify_Event_Behavior_Rules_ex1.py
# Description: Modify event behavior rules for the registered event layer or feature class.
# Requires: ArcGIS Location Referencing
# Check out license
arcpy.CheckOutExtension("LocationReferencing")
# Tool variables
in_feature_class = r"Data.gdb\LRS\P_ILIInspectionRange"
calibrate_rule = "RETIRE"
retire_rule = "STAY_PUT"
extend_rule = "STAY_PUT"
reassign_rule = "STAY_PUT"
realign_rule = "STAY_PUT"
# Set current workspace
arcpy.env.workspace = "C:\Data.gdb"
# Execute the tool
arcpy.ModifyEventBehaviorRules_locref(in_feature_class, calibrate_rule, retire_rule, extend_rule, reassign_rule, realign_rule)
# Check in license
arcpy.CheckInExtension('LocationReferencing')
The following script demonstrates how to use the ModifyEventBehaviorRules tool in a stand-alone Python script.
# Name: Modify_Event_Behavior_Rules_ex2.py
# Description: Modify event behavior rules for the registered event layer or feature class
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Check out license
arcpy.CheckOutExtension("LocationReferencing")
# Local variables
in_feature_class = r"Data.gdb\LRS\P_ILIInspectionRange"
calibrate_rule = "RETIRE"
retire_rule = "STAY_PUT"
extend_rule = "STAY_PUT"
reassign_rule = "STAY_PUT"
realign_rule = "STAY_PUT"
# Process: Modify Event Behavior Rules
arcpy.ModifyEventBehaviorRules_locref(in_feature_class, calibrate_rule, retire_rule, extend_rule, reassign_rule, realign_rule)
# Check in license
arcpy.CheckInExtension('LocationReferencing')
Environnements
Informations de licence
- Basic: Requiert ArcGIS Location Referencing
- Standard: Requiert ArcGIS Location Referencing
- Advanced: Requiert ArcGIS Location Referencing
Rubriques connexes
Vous avez un commentaire à formuler concernant cette rubrique ?