ModelPath
Description:
A path to a file stored on a disk or on a server.
A path to a file stored on a disk or on a server.
Remarks:
ModelPaths are paths to another file. They can refer to Revit models, or to any of Revit's external file references (DWG links, for example.) Paths can be relative or absolute, but they must include an extension indicating what kind of file it is. Relative paths are generally relative to the currently opened document. If the current document is workshared, paths will be treated as relative to the central model. To create a ModelPath, use the derived classes FilePath , ServerPath, or use [!:Autodesk::Revit::DB::ModelPathUtils::ConvertCloudGUIDsToCloudPath(System::Guid, System::Guid)] for a cloud model path. The class ModelPathUtils contains utility functions for converting ModelPaths to and from strings.
ModelPaths are paths to another file. They can refer to Revit models, or to any of Revit's external file references (DWG links, for example.) Paths can be relative or absolute, but they must include an extension indicating what kind of file it is. Relative paths are generally relative to the currently opened document. If the current document is workshared, paths will be treated as relative to the central model. To create a ModelPath, use the derived classes FilePath , ServerPath, or use [!:Autodesk::Revit::DB::ModelPathUtils::ConvertCloudGUIDsToCloudPath(System::Guid, System::Guid)] for a cloud model path. The class ModelPathUtils contains utility functions for converting ModelPaths to and from strings.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.ModelPath
Autodesk.Revit.DB.FilePath
Autodesk.Revit.DB.ServerPath
System.Object
Autodesk.Revit.DB.ModelPath
Autodesk.Revit.DB.FilePath
Autodesk.Revit.DB.ServerPath
public class ModelPath : IDisposable
| Name | Return Type | Description |
|---|---|---|
| Compare(ModelPath) | int | Compares this ModelPath with another |
| Dispose() | None | Releases all resources used by the |
| GetModelGUID() | Guid | A GUID identifying the Revit cloud model. |
| GetProjectGUID() | Guid | A GUID identifying the BIM 360 project to which the model is associated. |
| Name | Return Type | Description |
|---|---|---|
| CentralServerPath | string | The path to the location of the central Revit server or cloud. |
| CloudPath | bool | Whether this path represents a path on an Autodesk server such as BIM360. |
| Empty | bool | Whether this path is empty |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| Region | string | The region of the BIM 360 account and project which contains this model. |
| ServerPath | bool | Whether this path is a server path (as opposed to a file path or cloud path) |