Revit 2025.3 API
DocumentGet |
Gets the central model path of the worksharing model.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.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