Revit 2026 API
Asset |
Sets the value property as a color.
Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void SetValueAsColor( Color color )
Public Sub SetValueAsColor ( color As Color )
public: void SetValueAsColor( Color^ color )
member SetValueAsColor : color : Color -> unit
Parameters
- color Color
- The new color.

Exception | Condition |
---|---|
ArgumentException | The input value is invalid for this AssetPropertyDoubleArray4d property. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The asset property is not editable. |
See Also