Returns id of the color fill scheme element applied to the view.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2022
Syntax
| C# |
|---|
public ElementId GetColorFillSchemeId( ElementId categoryId ) |
| Visual Basic |
|---|
Public Function GetColorFillSchemeId ( _ categoryId As ElementId _ ) As ElementId |
| Visual C++ |
|---|
public: ElementId^ GetColorFillSchemeId( ElementId^ categoryId ) |
Parameters
- categoryId
- Type: Autodesk.Revit.DB..::..ElementId
The id of the category which the color fill scheme element belongs to.
Return Value
The id of the color fill scheme element.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |