ConvertUserVisiblePathToModelPath Method


Model Path Utils Convert User Visible Path To Model Path Method

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
)

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
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
The path may be a server or file path.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →