This document is archived and information here might be outdated.  Recommended version.


INetworkCollection2.CreateGeometricNetworkEx Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkCollection2.CreateGeometricNetworkEx Method

Creates a new GeometricNetwork with a configuration keyword in this FeatureDataset.

[Visual Basic .NET]
Public Function CreateGeometricNetworkEx ( _
    ByVal Name As String, _
    ByVal NetworkType As esriNetworkType, _
    ByVal buildNormalizedTables As Boolean, _
    ByVal ConfigKeyword As String, _
    ByVal formatNum As Integer _
) As IGeometricNetwork
[C#]
public IGeometricNetwork CreateGeometricNetworkEx (
    string Name,
    esriNetworkType NetworkType,
    bool buildNormalizedTables,
    string ConfigKeyword,
    int formatNum
);
[C++]
HRESULT CreateGeometricNetworkEx(
  BSTR Name,
  esriNetworkType NetworkType,
  VARIANT_BOOL buildNormalizedTables,
  BSTR ConfigKeyword,
  long formatNum,
  IGeometricNetwork** Network
);
[C++]

Parameters Name [in] Name is a parameter of type BSTR NetworkType [in]
NetworkType is a parameter of type esriNetworkType buildNormalizedTables [in] buildNormalizedTables is a parameter of type VARIANT_BOOL ConfigKeyword [in] ConfigKeyword is a parameter of type BSTR formatNum [in] formatNum is a parameter of type long Network [out, retval]
Network is a parameter of type IGeometricNetwork

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The CreateGeometricNetworkEx method contains additional parameters to specify the Configuration keyword for creating networks in an ArcSDE Geodatabase and for specifying the storage format for the network.  The configuartion keyword specifies how the logical network tables and indexes are stored in ArcSDE.  The format outlines the storage of feature class IDs which participate in the geometric network. The storage format can be specified as either narrow or wide.  Networks with a narrow format can only  contain feature classes with class IDs less than 10,000 while networks with a wide format have no limitation on the feature class ID value.  Unless you specifically require narrow networks, the format should always be set to a value of 1 for the wide storage format.
Any value supplied for the BuildNormalizedTables parameter is ignored and is reserved for future development.

See Also

INetworkCollection2 Interface