ModelPathUtilsConvertUserVisiblePathToModelPath Method

Converts a user-visible path (string) to a ModelPath.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static ModelPath ConvertUserVisiblePathToModelPath(
	string strPath
)

Parameters

strPath  String
The path in string form, like RSN://{HostNodeName}/school/project.rvt

Return Value

ModelPath
A ModelPath representing either a server or file path.
Exceptions
ExceptionCondition
ArgumentNullException A non-optional argument was null
Remarks
The path may be a server or file path.
See Also