Skip To Content

Export network diagram content

Exporting network diagram content allows producing a simple-format JSON file that details all the features referenced in a network diagram. Then the resulting JSON file can be used for different purposes, such as the following:

  • Data control
  • Network calculation or analysis
  • Feed external systems

You can export network diagram content using the Export Diagram Content command at the bottom of the Find Diagrams pane, Export Diagram Content icon, or by executing the Export Diagram Content geoprocessing tool.

Prerequisite:

The diagram for which you want to export the content must be stored. You cannot export temporary diagram content.

  1. Start ArcGIS Pro.
  2. Load your project or create one.
  3. Depending on whether the diagram for which you want to export content is stored in a version or not, do one of the following choices:
    • If the diagram you want to export is stored in a particular version, execute the following steps:
      • If there is a map referencing the utility network feature service in your project, make this map the active view.
      • If not, add the utility network service to a new map.
      • Then switch the utility network dataset referenced in this map to the desired version.
    • If the diagram you want to export is stored in the default version, execute the following steps:
      • If in your project, there is already a map that references the utility network dataset from a direct connection to the utility network database or from a published feature service, make this map the active view.
      • If not, add the utility network service layer or the utility network data element under the database connection to a new map.
  4. Then, depending on whether you know the name of the diagram to which you want to export content, do one of the following choices:
    • When you know the diagram name, execute the following steps:
      • Open the Geoprocessing pane, and click Toolboxes, then expand Utility Network Tools.
      • Expand the Network Diagrams tools subset, then double-click the Export Diagram Content tool. The Geoprocessing pane appears and loads the Export Diagram Content tool.
      • Click the Input Utility Network drop-down arrow and select the utility network layer in the active map.
      • In Network Diagram Name, type the name of the diagram to export.
    • When you don't know the diagram name, you can search the diagram using the Find Diagrams pane, as explained below:
      • On the Utility Network tab set, in the Diagram group, click Find. The Find Diagrams pane appears. As explained in Search for network diagrams in the database topic, the Find Diagrams pane offers various and helpful functions to refine diagram searches.
      • Set up the pane options you need—for example, make sure the Cover parts of the active map extent option is checked and zoom in on the map part of the diagrams you want to update.
      • Click Refresh at the bottom of the list Refresh Diagram List icon to refresh the diagram list accordingly.
      • Click the diagram item you are interested in so it becomes checked in the list and click Export Diagram Content at the bottom of the pane Export Diagram Content icon.
        Note:

        This button is disabled when you have more than one diagram name item checked in the list.

      • The Geoprocessing pane appears and loads the Export Diagram Content tool. The Input Utility Network and Network Diagram Name parameters are preset.
  5. Click the Browse button next to the Output File box, then browse to and select the file location you want, type a name for the JSON file to create and click Save.
  6. By default, without any other specified settings, the exported diagram content will describe each container, junction, or edge diagram feature represented in the diagram with its associated network feature Global ID, its related container, and their connectivity. If you want to export more details, you can set some other options; for example:
    1. To export the diagram properties; that is, statistics, creation and update dates, and so on, check Include diagram properties.
    2. To export each diagram feature with its geometry, check Include geometries
    3. To export each diagram feature with the attributes of its associated utility network feature, check Include attributes
    4. To export each diagram feature with the list of the utility network elements it aggregates, check Include aggregations
  7. Click Run.

When the process completes, you can check the JSON file created at the specified output location.

Learn more about the output JSON response syntax

Related topics