ExternalResourceUtils.GetAllExternalResourceReferences(Document, ExternalResourceType)
Method
Description:
Gets the ids of all elements which refer to a specific type of external resource.
Gets the ids of all elements which refer to a specific type of external resource.
Syntax
public static ISet<ElementId> GetAllExternalResourceReferences(
Document document,
ExternalResourceType resourceType
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The Revit Document containing the external resource references. |
resourceType | ExternalResourceType | The type of external resource. |
Return Value
Type | Description |
---|---|
ISet | The ids of all elements which refer to external resources of the specified type. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |