Element.GetExternalResourceReferenceExpanded
Method
Description:
Gets the collection of ExternalResourceReference associated with a specified external resource type.
Gets the collection of ExternalResourceReference associated with a specified external resource type.
Remarks:
Use this API for an element which has multiple external resource references under a specified type, e.g., AppearanceAssetElement. See also: [!:Autodesk::Revit::DB::Element::getExternalResourceReference].
Use this API for an element which has multiple external resource references under a specified type, e.g., AppearanceAssetElement. See also: [!:Autodesk::Revit::DB::Element::getExternalResourceReference].
Syntax
public IList<ExternalResourceReference> GetExternalResourceReferenceExpanded(
ExternalResourceType resourceType
)
Parameters
Parameter | Type | Description |
---|---|---|
resourceType | ExternalResourceType | The desired external resource type. |
Return Value
Type | Description |
---|---|
IList | The collection of the ExternalResourceReference associated with a specified external resource type. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | This Element does not use a resource reference for the specified resource type. |
ArgumentNullException | A non-optional argument was null |