Revit 2026 API
DocumentGet |
Gets the central model path of the worksharing model.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ModelPath GetWorksharingCentralModelPath()
Public Function GetWorksharingCentralModelPath As ModelPath
public: ModelPath^ GetWorksharingCentralModelPath()
member GetWorksharingCentralModelPath : unit -> ModelPath
Return Value
ModelPathThe central model path, or null if the document is not workshared.

Exception | Condition |
---|---|
InvalidOperationException | This Document is not a workshared document. |
See Also