Determines whether the given element represents an external file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
public static bool IsExternalFileReference( Document aDoc, ElementId elemId )
Parameters
- aDoc Document
- A Revit Document.
- elemId ElementId
- The element to be checked for an external file reference.
Return Value
BooleanTrue if the given element represents an external file; false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The element elemId does not exist in the document |
| ArgumentNullException | A non-optional argument was null |
Remarks
CAD imports are not external file references, as their data is brought fully into Revit. No connection is maintained to the original file.
A link may be an external resource without being an external file.
