Exercise 1: Setting default symbology and labeling for schematic diagrams

Complexity: Advanced Data Requirement: ArcGIS Tutorial Data for Desktop Data Path: C:\ArcGIS\ArcTutor\Schematics\ and C:\ArcGIS\ArcTutor\Schematics\Schematics_Configuration\Mixed_Data Goal: Generating diagrams based on the Standard builder from the geometric network data stored in the Brazil File Geodatabase and importing a default symbology for these diagrams

Aside from the basic configuration that was done in the Schematics Basic Configurations Tutorial, the next thing that is typically done is to set the default labeling and symbology. This configuration is done at the diagram template level. Then, anytime a user generates a diagram using that template, they will get the preconfigured default symbology and labeling.

In this exercise, you will learn how to set this default labeling and symbology.

NoteNote:

It is not a prerequisite to have done all the exercises in the Schematics Basic Configurations Tutorial. However, you will go quickly through some items that are explained in more details in the basic tutorial.

Creating and configuring the database and schematic dataset

Steps:
  1. Open ArcCatalog.
  2. Browse to and select the root schematics tutorial directory (C:\ArcGIS\ArcTutor\Schematics).
  3. Right-click this entry in the Catalog tree and choose New > Personal Geodatabase from the pop-up menu.
  4. Rename this database AdvancedSchematicDB.
  5. Right-click the AdvancedSchematicDB database and choose New > Schematic Dataset from the pop-up menu.
  6. Rename this dataset AdvancedSchematic.

    AdvancedSchematic dataset created

  7. Right-click the AdvancedSchematic schematic dataset and choose Edit schematic dataset button Edit from the pop-up menu.

    This will start the Schematic Dataset Editor application.

  8. Right-click the AdvancedSchematic entry in the Schematic Dataset Editor tree and choose New Schematic Diagram Template from the pop-up menu.
  9. Using the Properties tab on the right side of the editor window, type BrazilTemplate for the Name field.
  10. Click OK on the Properties tab.

    BrazilTemplate diagram template created

  11. Right-click the BrazilTemplate entry and choose Import From Feature Layers from the pop-up menu.

    This opens the Import From Feature Layers dialog box.

  12. Click the ellipse button at the end of the Map or Layer File input area.

    This opens the Select a map or layer file to import dialog box.

  13. Use this dialog box to navigate to and select the Brazil.mxd file that is found in C:\ArcGIS\ArcTutor\Schematics\Schematics_Configuration\Mixed_Data.
  14. Click the Add button, which will close the dialog box and update the Import From Feature Layers dialog box.

    Import From Feature Layers dialog box after selecting the Brail MXD file

  15. Click OK on this dialog box.
  16. Click Save icon Save on the Schematic Dataset Editor toolbar.

    At the end of this step, you have a configured Schematic Dataset. There is actually already default symbology that has been created because you imported from an MXD file. Since that MXD file already had symbology, Schematic tries to reuse it. You will go modify that a bit and add some labeling and see how to reset the default.

Importing a default symbology for schematic diagrams

Steps:
  1. Open the Brazil.mxd file using ArcMap.

    This file is located in C:\ArcGIS\ArcTutor\Schematics\Schematics_Configuration\Mixed_Data.

  2. Use the Select Features tool Select Features tool icon to select everything in the current view.

    Selection set the Brazil MXD file

  3. Click the Generate New Schematic Diagram button Generate New Schematic Diagram icon on the Schematic toolbar.

    This opens the New Schematic Diagram dialog box.

  4. Click the browse button browse button icon next to the Schematic Dataset or Folder drop-down list.

    This opens the Select schematic dataset or schematic folder dialog box.

  5. Use this dialog box to browse to and select the AdvancedSchematic schematic dataset you created in step 6 of the Creating and configuring the database and schematic dataset section above.
  6. Click the Add button.

    Since your configuration only has one diagram template (BrazilTemplate), it is automatically selected in the Schematic Diagram Template section.

  7. Type TestDiagram in the Schematic Diagram Name text box.

    New Schematic Diagram dialog box for the TestDiagram diagram

  8. Click OK.

    You will get a schematic diagram based on the selected features and using the same symbology that was configured for the GIS Features in the map.

    TestDiagram result

Joining and relating tables to draw or label schematic features

Now you will make some changes. You will change the drawing order for the pipelines net junctions. You will also change the symbol color for gas plants. Finally, you will add a join to the gas plants layer so you can label based on the GIS features attributes.

Steps:
  1. Double-click the pug_PUG_gas_plants entry in the table of contents that is found under the TestDiagram diagram layer.

    This opens the Layer Properties dialog box.

  2. Select the Symbology tab.

    pug_PUG_gas_plants Symbology tab - initial

  3. Click the red gas plant symbol button found in the Symbol section to open the Symbol Selector dialog box.
  4. Change the color to blue.

    pug_PUG_gas_plants symbol color changed

  5. Click OK to close the Symbol Selector dialog box.
  6. Select the Joins & Relates tab on the Layers Properties dialog box.

    Joins & Relate tab - initial tab for the pug_PUG_gas_plants feature layer

    When working with data coming from a network dataset or a geometric network, joining data is straightforward for Schematics. Schematic features keep track of the real GIS feature's object. So you just need to join this field (UOID) in the Schematic Feature Class to the real GIS feature's OBJECTID field in the GIS Feature Class.

  7. Click the Add button on the Joins section at the left.

    This opens the Join Data dialog box:

    Join Data dialog box - initial content

    1. Choose UOID from the Choose the field in this layer that the join will be based on drop-down list.
    2. Click the browse button next to the Choose the table to join this layer, or load the table from disk drop-down list.

      The Add dialog box opens.

    3. Navigate to and select the pug_PUG_gas_plants feature class that is in the pipelines feature dataset in the Brazil.gdb database, which is found in C:\ArcGIS\ArcTutor\Schematics\Schematics_Configuration\Mixed_Data.
    4. Click the Add button.
    5. Choose OBJECTID from the Choose the field in the table to base the join on drop-down list.

      You have now created a join from the schematic feature class to the real GIS feature class.

      pug_PUG_gas_plants join data - final

    6. Click OK.

    The Join & Relates tab displays as in the following screen shot:

    Join & Relates tab - final

  8. Select the Labels tab.
  9. Check the check box for Label features in this layer.
  10. Use the Label Field drop-down list to select NAME.

    Note that this came from the real feature class because of the join. Without the join, this field would not have been displayed in the list.

    Labels tab - final

  11. Click OK.

    Now you should have a diagram where the following are true:

    • The pipelines_Net_Junctions are drawing on top of the joined_pipe layer.
    • The pug_PUG_gas_plants symbol is blue.
    • The pug_PUG_gas_plants features are being labeled because of the join to the real feature class.

    pug_PUG_gas_plants feature layer changed

Creating a layer file to be used as a diagram template default

Now, you will learn how to set this labeling and symbology as the default for all the schematic diagrams based on the same schematic diagram template.

Steps:
  1. Right-click the TestDiagram diagram layer in the table of contents and choose Save As Layer File from the pop-up menu to open the Save Layer dialog box.
  2. Browse to and select the Schematics folder found in C:\ArcGIS\ArcTutor\Schematics.
  3. Change the name to BrazilTemplate.lyr.

    BrazilTemplate saved Layer file

  4. Click the Save button.

    At this point, you have a layer file that has all the definitions for the changes you made. You could start a new instance of the Brazil.mxd file, generate a diagram, and import this layer file, and you would get the same result. However, to make things easier for the ArcMap end user, you want this to be the default result.

  5. Close ArcMap and choose No to the save prompt.

Setting and testing the new default labeling and symbology for the BrazilTemplate diagram template

Steps:
  1. Switch back to the Schematic Dataset Editor application.
  2. Right-click the BrazilTemplate entry in the editor tree view and choose Import Default Symbology from the pop-up menu to open the Select Schematic Layer dialog box.
  3. Browse to and select the BrazilTemplate.lyr file created in step 23 above.

    Layer file for default layer properties

  4. Click the Open button.
  5. Click Save icon Save on the Schematic Dataset Editor toolbar.
  6. Close the Schematic Dataset Editor.
  7. Open the Brazil.mxd file using ArcMap.

    This file is located in C:\ArcGIS\ArcTutor\Schematics\Schematics_Configuration\Mixed_Data.

  8. Use the Select Features tool Select Features tool icon to select everything in the current view.
  9. Click the Generate New Schematic Diagram button Generate New Schematic Diagram icon on the Schematic toolbar.

    This opens the New Schematic Diagram dialog box.

  10. Click the browse button browse button icon next to the Schematic Dataset or Folder drop-down list.

    This opens the Select schematic dataset or schematic folder dialog box.

  11. Use this dialog box to browse to and select the AdvancedSchematic schematic dataset created in step 6 of the Creating and configuring the database and schematic dataset section above.
  12. Click the Add button.

    Since your configuration only has one diagram template (BrazilTemplate), it is automatically selected in the Schematic Diagram Template section.

  13. Type TestDefaults in the Schematic Diagram Name text box.

    New Schematic Diagram dialog box for theTestDefaults diagram

  14. Click OK.

    You will get a schematic diagram based on the selected features and using the same symbology and labeling that was saved in the layer file and imported as the new defaults for your diagram template.

    TestDefaults result

  15. Close ArcMap and click No to any save dialog boxes.
  16. Close ArcCatalog.
2/10/2012