GetAppearanceAssetElementByName Method


Gets an AppearanceAssetElement by name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2014

Syntax

C#
public static AppearanceAssetElement GetAppearanceAssetElementByName(
	Document doc,
	string name
)
Visual Basic
Public Shared Function GetAppearanceAssetElementByName ( _
	doc As Document, _
	name As String _
) As AppearanceAssetElement
Visual C++
public:
static AppearanceAssetElement^ GetAppearanceAssetElementByName(
	Document^ doc, 
	String^ name
)

Parameters

doc
Type: Autodesk.Revit.DB Document
Document containing the AppearanceAssetElement.
name
Type: System String
Name of the AppearanceAssetElement.

Return Value

The AppearanceAssetElement with the given name, or a null reference ( Nothing in Visual Basic) if this element does not exist.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →