AddNewAssetAsColor Method


Adds a new AssetPropertyDouble4 property to the list containing a value matching the input color.

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

Syntax

C#
public void AddNewAssetAsColor(
	Color value
)
Visual Basic
Public Sub AddNewAssetAsColor ( _
	value As Color _
)
Visual C++
public:
void AddNewAssetAsColor(
	Color^ value
)

Parameters

value
Type: Autodesk.Revit.DB Color
The color value to add.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions InvalidOperationException The asset property is not editable.

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 →