I’m following the syntax for context directives here. I’m using the following context directives, but it fails upon loading:
context:
- exact:
- OST_Dimensions
I receive an availability command error similar to this old issue, and the only way for me to get my pushbutton working again is to change my context to the following and restart Revit:
context: OST_Dimensions
I want to ensure that only dimensions are selected by the user, so the simplified version doesn’t work because it will enable the button if any dimension is included in the selection. I could filter out elements in my script, but it defeats the point of the documented context directives. Is this a bug that others have experienced recently?
Revit Version
26.4.10.51
20260406_1515(x64)
2026.4.1
pyRevit Version v6.4.0
Windows Version
Edition Windows 11 Pro
Version 25H2
Installed on 2/4/2025
OS build 26200.8655
Experience Windows Feature Experience Pack 1000.26100.315.0