RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Element

Element.GetExternalResourceReference

Method
Description:
Gets the ExternalResourceReference associated with a specified external resource type.
Remarks:
For an element which has multiple external resource references under a specified type like AppearanceAssetElement, it will return the first one. See also: [!:Autodesk::Revit::DB::Element::getExternalResourceReferenceExpanded].
Parameters
Parameter Type Description
resourceType ExternalResourceType The desired external resource type.
Return Value
Type Description
ExternalResourceReference The copy 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