2027 Class
Changes 0
C

ServerPath

Description:
This class represents a path to a Revit Server location, rather than a location on disk or a network drive.
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
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ModelPath
    Autodesk.Revit.DB.ServerPath
public class ServerPath : ModelPath
Name Return Type Description Inherited From
C ServerPath(String, String) None Constructs a ServerPath
Name Return Type Description Inherited From
M Compare(ModelPath) Int32 Compares this ModelPath with another (Inherited from ModelPath ) ModelPath
M Dispose() None (Inherited from ModelPath ) ModelPath
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetModelGUID() Guid A GUID identifying the Revit cloud model. (Inherited from ModelPath ) ModelPath
M GetProjectGUID() Guid A GUID identifying Cloud Model project to which the cloud model is associated. (Inherited from ModelPath ) ModelPath
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P CentralServerPath string The path to the location of the central Revit server or cloud. (Inherited from ModelPath ) ModelPath
P CloudPath bool Whether this path represents a path on an Autodesk server such as BIM360. (Inherited from ModelPath ) ModelPath
P Empty bool Whether this path is empty (Inherited from ModelPath ) ModelPath
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity. (Inherited from ModelPath ) ModelPath
P Region string The region of the cloud model. (Inherited from ModelPath ) ModelPath
P ServerPath bool Whether this path is a server path (as opposed to a file path or cloud path) (Inherited from ModelPath ) ModelPath