How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Building the component
- Open the solution file and build the project.
Configuring schematic attributes to be evaluated at On Start Editing
- Start ArcCatalog and edit a schematic dataset with a diagram template configured to work from a geometric network.
- Check the On Start Editing evaluation mode for any Associated Field schematic attribute that is used to label or symbolize the schematic features in the schematic diagrams.
- Save the schematic dataset and exit the Schematic Dataset Editor.
Adding the custom AutoRefresh button to the Schematic Editor toolbar
- Start ArcMap with a new empty map.
- Click Customize and click Customize Mode.
- Click the Commands tab and click AutoRefresh (VBNet) or AutoRefresh (C#) in the Categories list.
- Drag and drop the AutoRefresh command onto the Schematic Editor toolbar.
Testing auto refresh in the schematic diagram
- In the Layers data frame, add the geometric network data with which your diagram template works.
- Open a schematic diagram containing schematic features that were affected by the changes made during the On Start Editing evaluation, or generate a schematic diagram.
- Click Schematic Editor and click Start Editing Diagram on the Schematic Editor toolbar.
- Click the AutoRefresh (VBNet) or AutoRefresh (C#) button. The Schematic Auto Refresh Properties dialog box opens.
- Check the Auto Refresh On option, configure the time interval parameter values, then close the dialog box.
- In the active schematic diagram, select a schematic feature impacted by the changes made during the On Start Editing evaluation.
- Click Propagate Schematic Selection To Map on the Schematic toolbar. The associated feature is automatically selected in the Layers data frame.
- Activate this data frame and zoom in on the selected geographic information system (GIS) feature.
- On the Editor toolbar, click Editor and click Start Editing.
- Change some attribute values for the selected GIS feature.
- Activate the data frame containing the schematic diagram. After the specified time interval, all schematic attributes configured during the On Start Editing evaluation have been automatically re-evaluated. They reflect the changes you made to the associated GIS feature attributes. If these schematic attributes are used to label or symbolize the schematic feature, the impact is visual; the symbol or the label has been automatically changed.
Autorefresh.cs | Implements the AutoRefresh button. |
FormAutorefresh.cs | Implements the form's interval time. |
Autorefresh.vb | Implements the AutoRefresh button. |
FormAutorefresh.vb | Implements the form's interval time. |
Download the files for all languages
Development licensing | Deployment licensing |
---|---|
ArcView: Schematics | ArcView: Schematics |
ArcEditor: Schematics | ArcEditor: Schematics |
ArcInfo: Schematics | ArcInfo: Schematics |