Functions of the extension class
The extension class consists of one property and many functions which provide access to events related to the ArcGIS for Desktop application.
The state of the extension. If it is set to True, the extension is started. When this property is set to False, the extension is shutdown. This property can be changed in any of the functions listed below.
The path of the workspace being edited.
The current Layer object.
The current feature Geometry object.
A list of the Object ID values for the selected features being edited.
Python built-in function to define intial variables.
Occurs at the startup of the application.
Occurs when the active view is changed. The active view changes when a data frame is added or removed and when changing from data view to layout view.
Occurs only when a data frame is added or removed.
Occurs anytime a new document is created.
Occurs anytime a document is opened.
Occurs before a document is closed.
Occurs when a document closes.
Occurs before the data-driven page extent is changed. This happens after you click to navigate to the next data-driven page and before the extent changes. The old_id represents the current page ID before it changes.
Occurs when the data-driven page extent is changed. This happens once the extent of the data-driven next page changes. The new_id represents the new page ID.
Occurs when the contents of the view changes, such as changing the properties or symbology of a layer.
Occurs when the spatial reference of the data frame is changed.
Occurs every time a new layer is added or when a new element is added to the page layout. Elements include graphics and data frames. The new_item will return None for items such as images and graphics.
Occurs every time a layer is removed or when an element is deleted from the page layout. Elements include graphics and data frames. The deleted_item will return None for items such as images and graphics.
itemReordered(self, reordered_item, new_index)
Occurs when layers in the table of contents are reordered and when new layers are added. This also occurs when changing the order of graphics in the page layout. For example, sending a graphic to the back or to the front. This does not occur when graphics are reordered in the map view.
Occurs whenever the feature selection changes during an edit session.
Occurs whenever the current layer changes during an edit session.
Occurs whenever the current task changes during an edit session. For example, this occurs when changing from a construction tool to the reshape feature tool.
Occurs whenever an edit session is started.
Occurs whenever an edit session ends.
Occurs whenever an edit operation starts.
Occurs before the edit operation stops. This provides an opportunity to perform preliminary analysis on changes that occurred inside the edit operation before committing that operation to the geodatabase.
Occurs when the operation is successfully completed.
Occurs whenever the save edits command is executed in the Editor.
Occurs whenever a new feature is changed.
Occurs whenever a new feature is created.
Occurs whenever a feature is deleted.
Occurs whenever an edit operation is undone. For example, if a feature is moved and Undo is called, the onUndo is fired.
Occurs whenever an edit operation is redone. For example, if a feature is moved and Undo and Redo are called, the onUndo and onRedo are fired.