color_splash
Color-code Revit elements by any parameter value to quickly audit phasing, fire ratings, or type distributions in the active view.
Instructions
Colour-code elements of a category by the value of one parameter.
Elements sharing a parameter value get the same colour, which makes this the fastest way to visually audit a model - phasing, fire rating, room department, wall type distribution.
Applies graphic overrides in the ACTIVE view only; other views are untouched. The overrides persist in the view until clear_colors is called. Returns the colour assigned to each distinct value, plus counts.
Use list_category_parameters first to get a valid parameter_name.
Args: category_name: Category to colour, e.g. "Walls". parameter_name: Parameter driving the colours, e.g. "Type Name". use_gradient: Use a continuous gradient instead of distinct colours. Suits numeric parameters; poor for text values. custom_colors: Optional hex colours to use in order, e.g. ["#FF0000", "#00FF00"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| use_gradient | No | ||
| category_name | Yes | ||
| custom_colors | No | ||
| parameter_name | Yes |