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


INetworkCollection.CreateGeometricNetwork Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkCollection.CreateGeometricNetwork Method

Creates a new GeometricNetwork in this FeatureDataset.

[Visual Basic .NET]
Public Function CreateGeometricNetwork ( _
    ByVal Name As String, _
    ByVal NetworkType As esriNetworkType, _
    ByVal buildNormalizedTables As Boolean _
) As IGeometricNetwork
[C#]
public IGeometricNetwork CreateGeometricNetwork (
    string Name,
    esriNetworkType NetworkType,
    bool buildNormalizedTables
);
[C++]
HRESULT CreateGeometricNetwork(
  BSTR Name,
  esriNetworkType NetworkType,
  VARIANT_BOOL buildNormalizedTables,
  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 Network [out, retval]
Network is a parameter of type IGeometricNetwork

Product Availability

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

Remarks

When you create a geometric network you also create a corresponding logical network. To get the logical network you need to call IGeometricNetwork::Network which will return the INetwork interface.
Any value supplied for the BuildNormalizedTables parameter is ignored and is reserved for future development.

See Also

INetworkCollection Interface | INetworkLoader Interface