color_elements
Colors elements in the current Revit view by category and parameter value, assigning a distinct color to each unique value so you can visually analyze parameter-based groupings.
Instructions
Color elements in the current view based on a category and parameter value. Each unique parameter value gets assigned a distinct color.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"categoryName": "<categoryName>",
"parameterName": "<parameterName>"
},
"name": "color_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| useGradient | No | Whether to use a gradient color scheme instead of random colors | |
| categoryName | Yes | The name of the Revit category to color (e.g., 'Walls', 'Doors', 'Rooms') | |
| customColors | No | Optional array of custom RGB colors to use for specific parameter values | |
| parameterName | Yes | The name of the parameter to use for grouping and coloring elements |