2021 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) int Compares this ModelPath with another ModelPath
M Dispose() None Releases all resources used by the ModelPath
M GetModelGUID() Guid A GUID identifying the Revit cloud model. ModelPath
M GetProjectGUID() Guid A GUID identifying the BIM 360 project to which the model is associated. ModelPath
Name Return Type Description Inherited From
P CentralServerPath string The path to the location of the central Revit server or cloud. ModelPath
P CloudPath bool Whether this path represents a path on an Autodesk server such as BIM360. ModelPath
P Empty bool Whether this path is empty ModelPath
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity. ModelPath
P Region string The region of the BIM 360 account and project which contains this model. ModelPath
P ServerPath bool Whether this path is a server path (as opposed to a file path or cloud path) ModelPath