Gets the external file referencing data for the given element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2012
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- aDoc
- Type: Autodesk.Revit.DBDocument
A Revit Document.
- elemId
- Type: Autodesk.Revit.DBElementId
The element whose external file reference we want.
Return Value
An object containing path and type information for the given element's external file.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | The element elemId does not exist in the document -or- elemId does not represent an external file reference. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |