GetAppearanceAssetElementByName Method


Gets an AppearanceAssetElement by name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.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.DBDocument
Document containing the AppearanceAssetElement.
name
Type: SystemString
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

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException 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 →