ServerPath
This class represents a path to a Revit Server location, rather than a location on disk or a network drive.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ModelPath
Autodesk.Revit.DB.ServerPath
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ServerPath : ModelPath
The ServerPath type exposes the following members.
Constructors
Name
Description
Public Method
ServerPath
Constructs a ServerPath
Properties
Name
Description
Public Property
CentralServerPath
The path to the location of the central Revit server or cloud.
(Inherited from ModelPath)
Public Property
CloudPath
Whether this path represents a path on an Autodesk server such as BIM360.
(Inherited from ModelPath)
Public Property
Empty
Whether this path is empty
(Inherited from ModelPath)
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ModelPath)
Public Property
Region
The region of the BIM 360 Docs or Autodesk Docs account and project which contains this model.
(Inherited from ModelPath)
Public Property
ServerPath
Whether this path is a server path (as opposed to a file path or cloud path)
(Inherited from ModelPath)
Methods
Name
Description
Public Method
Compare
Compares this ModelPath with another
(Inherited from ModelPath)
Public Method
Dispose
(Inherited from ModelPath)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetModelGUID
A GUID identifying the Revit cloud model.
(Inherited from ModelPath)
Public Method
GetProjectGUID
A GUID identifying the BIM 360 Docs or Autodesk Docs project to which the model is associated.
(Inherited from ModelPath)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
ServerPaths must refer to Revit models.
ServerPaths are relative to the central server location, and are of the form “RSN://{HostNodeName}/{model_path}”.
The {model_path} portion is a relative path to a Revit model. For example, the following are valid server paths:
- RSN://EXS/hospital.rvt
- RSN://EXS.autodesk.com/Old Files/hotel2.rvt
- RSN://EXS.autodesk.com/Old Files/Last Week/Tuesday\hotel2.rvt
The following would not be valid server paths:
- //EXS/Old Files/.rvt
- EXS/hospital