Revit 2026 API
External |
Returns a copy of the ModelPath of the document that is requesting the external resource browser data.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ModelPath GetCallingDocumentModelPath()
Public Function GetCallingDocumentModelPath As ModelPath
public: ModelPath^ GetCallingDocumentModelPath()
member GetCallingDocumentModelPath : unit -> ModelPath
Return Value
ModelPathA copy of the ModelPath of the document that is requesting the external resource browser data.
| Exception | Condition |
|---|---|
| InvalidOperationException | The document requesting the external resource browser data does not have a ModelPath, either because it is detached, or because it has not been saved to disk yet, or no document specified. |
See Also