Export Network Schema

Created:4/15/2002
Description:

The sample will export the schema of a Geometric Network to text file. Select the Geometric Network in ArcCatalog and click the command. The Geometric Networks schema will be exported to a test file in the workspace of the Geodatabase. Once complete, a message box displays so that you can examine the network schema

What is output into the text file? The name and type of network along with the name of the orphan junction feature class. All the feature classes in the geometric network are listed according to their topological role. Weights and Ancillary Roles are identified if present. If Connectivity Rules have been established, these are also listed.


How to use:
  1. Double click on the _Install.BAT file.
  2. From the 'Developer Samples' commands category, add the 'Export Network Schema' command to a toolbar.
  3. Select the geometric network.
  4. Click the Export Network Schema command.
  5. A text file will be created at the level of the Geodatabase workspace and a message box will be displayed which will allow you to view the text file at this time.

Application:
ArcCatalpg

Requires: Selecting a geometric network

Difficulty: Intermediate


Visual Basic
File Description
clsExportGNSchema.cls Implementation for the command.
prjExportGNSchema.vbp The project file for the sample command.
ExportGNSchema.dll The compiled project.
_INSTALL.bat Batch file that registers the dll and calls Register_with_Component_Categories.reg
Register_with_Component_Categories.reg Registry file that registers the various classes with their appropriate component categories.


Key CoClasses: Editor
Key Interfaces: IGeometricNetwork, IConnectivityRule, IEdgeConnectivityRule, IJunctionConnectivityRule2, IEnumNetWeightAssociation, INetWeightAssociation, INetWeight, INetSchema
Key Members: INetSchema::Weight, INetSchema::WeightAssociations