View.SetColorFillSchemeId Method

Applies color fill scheme to this view.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public void SetColorFillSchemeId(
	ElementId categoryId,
	ElementId schemeId
)

Parameters

categoryId  ElementId
The id of category to apply a color fill scheme element.
schemeId  ElementId
The id of the color fill scheme element.

Exceptions

ExceptionCondition
ArgumentException The schemeId can not be applied as the scheme id of categoryId in this view.
ArgumentNullException A non-optional argument was null

Remarks

There could be at most three [!:Autodesk::Revit::DB::ColorFillScheme] applied in a view: one for spatial elements (rooms, zones, spaces and areas), one for pipes and one for ducts.

Notes:

See Also

Reference

View Class
Autodesk.Revit.DB Namespace