SetRenderingAsset Method


Sets the rendering asset for the appearance asset element.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2014

Syntax

C#
public void SetRenderingAsset(
	Asset asset
)
Visual Basic
Public Sub SetRenderingAsset ( _
	asset As Asset _
)
Visual C++
public:
void SetRenderingAsset(
	Asset^ asset
)

Parameters

asset
Type: Autodesk.Revit.DB.Visual Asset
The new rendering asset. It should be an appearance asset.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions ArgumentOutOfRangeException The asset is not an appearance asset.

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 →