Revit 2026 API
External |
Gets the ids of all elements which refer to external resources.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static ISet<ElementId> GetAllExternalResourceReferences( Document document )
Public Shared Function GetAllExternalResourceReferences ( document As Document ) As ISet(Of ElementId)
public: static ISet<ElementId^>^ GetAllExternalResourceReferences( Document^ document )
static member GetAllExternalResourceReferences : document : Document -> ISet<ElementId>
Parameters
- document Document
- The Revit Document containing the external resource references.
Return Value
ISetElementIdThe ids of all elements which refer to external resources.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
This function will not return the ids of nested Revit links;
it only returns top-level references.
See Also