API equivalent of Schedule Conditional Formatting dialog

API equivalent of Schedule Conditional Formatting dialog

ser
Explorer Explorer
137 Views
1 Reply
Message 1 of 2

API equivalent of Schedule Conditional Formatting dialog

ser
Explorer
Explorer

I want to automatically configure Conditional Formatting in a Sheet Schedule.

Manually in the UI this works:

Schedule Properties → Formatting → Conditional Formatting

 

Rule:
Field: Highlight sheet in schedule (Yes/No parameter on Sheets)
Test: Equal To
Value: Yes
Background color: chosen color

 

When the parameter is Yes, the entire row becomes highlighted.

I want to automatically set up this rule for a schedule so users do not need to configure it manually.

 

Questions:
1. Is it possible to create this Schedule Conditional Formatting rule automatically?
2. Can the parameter used for the rule remain hidden in the schedule?

Revit version: 2026
Schedule type: Sheet Schedule

Screenshot of the manual setup attached.

Highlight.png

0 Likes
138 Views
1 Reply
Reply (1)
Message 2 of 2

sragan
Collaborator
Collaborator

I don't know if that's possible in the API.  However, I do know it's possible to apply a template to a schedule via the API.

 

Would a possible workaround be to include a schedule template in the project, and then apply this template to the schedule you want to have the conditional formatting?

 

Assuming a schedule template stores the conditional formatting.....

 

0 Likes