ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Generate Events

  • Résumé
  • Utilisation
  • Syntaxe
  • Exemple de code
  • Environnements
  • Informations de licence

Résumé

Regenerates shapes for event features registered with an LRS Network.

Utilisation

  • An LRS dataset is required to run this tool.

  • Use the event whose features need to be regenerated based on the route and measure of the event as input.

  • When conflict prevention is enabled for the tool, any events being generated by the tool will be locked.

    • While working in the default version, the locks acquired are released automatically when the tool completes.
    • While working in a child version, the locks acquired will remain in On Post status when the tool completes. The lock owner must post or delete the version to release the locks.
    • While working in a child version, if the execution of the tool is canceled by interruption, the locks are acquired and will remain in releasable status when the tool completes.

Syntaxe

arcpy.locref.GenerateEvents(in_event_layer)
ParamètreExplicationType de données
in_event_layer

The event for which shapes will be regenerated.

Feature Layer

Sortie dérivée

NomExplicationType de données
out_event_layers

The updated events feature layer.

Remarque :

Validation results for this tool are written to the ArcGIS Server directory. This file is automatically cleaned up in 10 minutes by default, which may not be enough time to process all of the validations and write them to your workstation that is running ArcMap. For larger data loads, it is recommended that you adjust the maximum file age to at least one hour.

Feature Layer

Exemple de code

GenerateEvents example 1 (Python window)

The following Python window script demonstrates how to use the GenerateEvents function in the Python window.

# tool variables 
in_event_layer = "Event"

# set current workspace 
arcpy.env.workspace = "C:/data/Outputs.gdb"

# execute the tool 
arcpy.GenerateEvents_locref(in_event_layer)
GenerateEvents example 2 (stand-alone script)

The following Python script demonstrates how to use the GenerateEvents function in a stand-alone Python script.

# Name: GenerateEvents_standalone_ex.py 
# Description: Re-creates shapes for event features registered with a LRS Network 

# Import arcpy module 
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")

# Local variables 
# input Network layer 
in_event_layer = "C:\\RoadsAndHighways\Data\RH_DOT.gdb\SpeedLimit"

# Process: Generate Events
arcpy.GenerateEvents_locref(in_event_layer)

Environnements

  • Espace de travail courant

Informations de licence

  • Basic: Requiert Roads and Highways
  • Standard: Requiert Roads and Highways
  • Advanced: Requiert Roads and Highways

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal