- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There currently is no way to use the IExternalCommandAvailability interface to enable/disable pulldown buttons.
The necessary property AvailabilityClassName only exists for PushButton and Button classes.
This makes some sense as the PullDownButton itself does not implement an external command, so the menu would not know where to look for the class instance for the interface that it must call to check availability.
In my menu I have a couple of PullDownButtons that contains command buttons that only are applicable when Revit is in a family document, and also a couple that have command buttons that only apply when Revit is not in a family editor.
Is there another way to implement something like the IExternalCommandAvailability interface specifically for PullDownButtons, or will I have to rely on using an Idle event for this?
Solved! Go to Solution.