Generating a diagram based on the XML builder

Prerequisite:

Before generating XML diagrams, you must create a schematic diagram template in your schematic dataset and configure it to work with the XML builder.

Learn more about configuring a diagram template with the XML builder

The easiest way to generate a schematic diagram based on the XML builder is to start ArcMap and use the Generate New Schematic Diagram icon Generate New Schematic Diagram command on the Schematic toolbar. Schematic diagrams can be generated from any XML input data based on the XMLBuilderDiagram XML schema definition file. The following section details the steps to generate an XML schematic diagram in ArcMap.

NoteNote:

The Schematics geoprocessing tool called Create Diagram can also be used to generate diagrams based on the XML builder. In addition, you can use the Schematic API and develop custom code to generate diagrams based on the XML builder.

Steps:
  1. Start ArcMap.
  2. Click the Generate New Schematic Diagram icon Generate New Schematic Diagram button on the Schematic toolbar.

    The New Schematic Diagram dialog box opens.

    New Schematic Diagram - XML builder dialog

  3. Click the Schematic Dataset or Folder drop-down arrow and choose the schematic dataset or the schematic folder in the desired schematic dataset where the generated schematic diagram will be stored.

    Learn more about the schematic datasets/folders suggested by default in this drop-down list

    TipTip:

    If you want your new schematic diagram to be stored in another schematic dataset that is not in the list, click the browse button Browser button icon to the right of the Schematic Dataset or Folder drop-down list and browse to the desired schematic dataset you want to work with. By selecting a specific schematic folder in a schematic dataset, the generated schematic diagram will be automatically stored in this schematic folder instead of the schematic dataset root.

  4. Click the Schematic Diagram Template drop-down arrow and choose the schematic diagram template based on the XML builder that will be used to generate the schematic diagram.

    All the predefined schematic diagram templates available from the currently selected schematic dataset specified in the Schematic Dataset or Folder drop-down list are itemized in this list.

  5. Keep the [Create New Data Frame] default value in the Output Data Frame drop-down list so the generated schematic diagram is automatically displayed in a new data frame, or choose the data frame in which you want the generated schematic diagram to be added from that drop-down list.
  6. Click the ellipsis (...) button in the Specify the input XML file area to browse to and choose the XML file that contains the data you want to use for the schematic diagram generation.

    When the XML builder is configured to work with an external component that automatically provides the input XML data for diagram generation, this ellipsis button is unavailable. No specific XML file needs to be specified in that case.

  7. Type a name for the diagram that will be generated.
  8. Click OK.

The schematic diagram is generated and displayed in the specified data frame. It is now referenced in the schematic database.

CautionCaution:

The diagram template selected in the Schematic Diagram Template drop-down list must be configured to work with schematic feature classes that are related to the FeatureClassName items in the input XML file. If none of the diagram template's schematic feature classes are associated with the FeatureClassName items in the input XML file, the generated diagram will be empty. To learn more about configuring schematic feature classes and a diagram template, see the Specifying the content of schematic diagrams implemented by a diagram template topic.

Related Topics


1/10/2012