Utility wizard for basic schematic datasets configuration


Purpose
This sample, developed as an add-in ArcCatalog extension, is a Utility wizard that can be used to create a schematic dataset in a geodatabase with basic settings on a diagram template that uses geometric network data as the input for generating schematic diagrams. It greatly simplifies the schematic dataset's primary configuration steps for simple cases. It allows the following:
  • Configuration of some basic properties for the Standard builder that will be used to generate the schematic diagrams (optional).
  • Specification of the input geometric network data from which the diagrams will be generated (required). This results in the creation of the associated schematic feature classes in the schematic dataset.
  • Specification of node reduction by priority rules to systematically reduce any orphan nodes and nodes with two connections when those nodes are based on specific schematic feature classes (optional).
  • Specification of the directions for a Hierarchical-Smart Tree layout algorithm to be automatically executed at the diagram generation (optional).
  • Creation of specific schematic attributes associated with fields in the geometric network feature classes (optional).

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
  1. Start Visual Studio.
  2. Open the solution and build the project.

Adding the custom Create Basic Schematic Settings button to any ArcCatalog toolbar
  1. Start ArcCatalog.
  2. Click Customize and click Customize Mode.
  3. Click the Commands tab, and click Schematic Extras (VBNet) or Schematic Extras (CSharp) in the Categories list.
  4. Drag-and-drop the Create Basic Schematic Settings command onto any toolbar.

Testing the Create Basic Schematic Settings wizard
  1. In the Catalog tree, either select the geodatabase in which you want to create the new schematic dataset with basic settings or select the schematic dataset in which you want to configure a new diagram template.
  2. Click the Create Basic Schematic Settings (VBNet) or Create Basic Schematic Settings (C#) button. The Dataset and Template Name dialog box appears.
  3. If you started from a selected geodatabase, type a name for the new schematic dataset to create in the Dataset Name field. When starting from a schematic dataset, the Dataset Name field is already specified.
  4. Type a name for the diagram template in the Template Name field.
  5. Select Use digitized vertices if you want the schematic links in the diagrams based on the new diagram template to display with their initial vertices.
  6. Click Next. The Select a map document dialog box appears.
  7. Select the map that contains the geographic feature classes from which you want to generate the diagrams based on the new diagram template and click Add. The Select network feature classes to reduce dialog box appears.
  8. If you want a Node reduction by priority rule to be configured on your diagram template for one or several schematic feature classes, select the desired schematic feature class items.
  9. Click Next. The Advanced Options dialog box appears.
  10. In the Algorithm tab, if you want a Smart Tree schematic layout algorithm to be automatically executed at the end of each diagram generation, select the Apply Smart Tree algorithm check box, then configure the desired Direction and Root Feature Class using the drop-down lists.
  11. In the Attributes tab, if you want some schematic associated field attributes to be automatically created on your schematic feature classes, select the Create associated attribute check box. Select the desired schematic feature class on the left part of the form and, on the right part, select the check box related to each desired field item.
  12. Click Done. The process starts. A new schematic dataset containing a new diagram template with the settings you specified is created in the geodatabase.
  13. You can now open the map that was selected in the preceding Step 7, select some features, and generate a new diagram based on the new dataset and/or template.

GenerateSchematicTemplate.cs Class file that implements the ArcCatalog tool.
frmDatasetTemplateName.cs Class that implements the Dataset and Template Name form.
frmSelectItemsToReduce.cs Class that implements the Select network feature classes form.
frmAdvanced.cs Class that implements the Advanced Options form.
Events.cs Class that implements the events.
Config.esriaddinx Add-in declarations in Extensible Markup Language (XML).
Download the C# files
GenerateSchematicTemplate.vb Class file that implements the ArcCatalog tool.
frmDatasetTemplateName.vb Class that implements the Dataset and Template Name form.
frmSelectItemsToReduce.vb Class that implements the Select network feature classes form.
frmAdvanced.vb Class that implements the Advanced Options form.
Events.vb Class that implements the events.
Config.esriaddinx Add-in declarations in Extensible Markup Language (XML).
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcGIS for Desktop Advanced: Schematics ArcGIS for Desktop Advanced: Schematics