Returns a copy of the ModelPath of the document that is requesting
the external resource.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
public ModelPath GetCallingDocumentModelPath()
Return Value
ModelPathA copy of the ModelPath of the document that is requesting the external resource.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The document requesting the external resource does not have a ModelPath, either because it is detached, or because it has not been saved to disk yet. |
