color_splash
Color code Revit elements in a category based on parameter values. Elements with identical values receive the same color.
Instructions
Color elements in a category based on parameter values
This tool applies color coding to Revit elements within a specified category based on their parameter values. Elements with the same parameter value will receive the same color.
Args: category_name: Name of the category to color (e.g., "Walls", "Doors", "Windows") parameter_name: Name of the parameter to use for coloring (e.g., "Mark", "Type Name") use_gradient: Whether to use gradient coloring instead of distinct colors (default: False) custom_colors: Optional list of custom colors in hex format (e.g., ["#FF0000", "#00FF00"]) ctx: MCP context for logging
Returns: Results of the coloring operation including statistics and color assignments
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": {
"category_name": "<category_name>",
"parameter_name": "<parameter_name>"
},
"name": "color_splash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_name | Yes | ||
| parameter_name | Yes | ||
| use_gradient | No | ||
| custom_colors | No |