Revit 2025 API
Model |
Converts a user-visible path (string) to a ModelPath.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static ModelPath ConvertUserVisiblePathToModelPath( string strPath )
Public Shared Function ConvertUserVisiblePathToModelPath ( strPath As String ) As ModelPath
public: static ModelPath^ ConvertUserVisiblePathToModelPath( String^ strPath )
static member ConvertUserVisiblePathToModelPath : strPath : string -> ModelPath
Parameters
- strPath String
- The path in string form, like RSN://{HostNodeName}/school/project.rvt
Return Value
ModelPathA ModelPath representing either a server or file path.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

The path may be a server or file path.
See Also