ArcObjects Library Reference (DataSourcesFile)  

ISMRouterFactory.CreateRouterCfg Method

Creates a SMRouter object based on additional information in the alternate routing configuration file.

[Visual Basic .NET]
Public Function CreateRouterCfg ( _
    ByVal RoutingFilePath As String, _
    ByVal ConfigPath As String _
) As SMRouter
[C#]
public SMRouter CreateRouterCfg (
    string RoutingFilePath,
    string ConfigPath
);
[C++]
HRESULT CreateRouterCfg(
  BSTR RoutingFilePath,
  BSTR ConfigPath,
  ISMRouter** pIRouter
);
[C++]

Parameters

RoutingFilePath [in]   RoutingFilePath is a parameter of type BSTR ConfigPath [in]   ConfigPath is a parameter of type BSTR pIRouter [out, retval]

  pIRouter is a parameter of type ISMRouter

Product Availability

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

Description

The method creates SMRouter object using the alternate configuration file along with the main routing initialization file.

Remarks

The method returns an instance of the SMRouter object if successful. Otherwise it returns Nothing.


A routing initialization file, for example routing.ini or routing.rs, contains the definition of the routing service based on the specific information about routing data source.

A routing configuration file, for example routing.cfg, contains application specific information such as driving directions patterns, texts of directions parts, distance, time formats, and so on.

See Also

ISMRouterFactory Interface