Converts a user-visible path (string) to a ModelPath.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2012
Syntax
C# |
---|
public static ModelPath ConvertUserVisiblePathToModelPath( string strPath ) |
Visual Basic |
---|
Public Shared Function ConvertUserVisiblePathToModelPath ( _ strPath As String _ ) As ModelPath |
Visual C++ |
---|
public: static ModelPath^ ConvertUserVisiblePathToModelPath( String^ strPath ) |
Parameters
- strPath
- Type: System..::..String
The path in string form, like RSN://{HostNodeName}/school/project.rvt
Return Value
A ModelPath representing either a server or file path.
Remarks
The path may be a server or file path.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |