I have a few custom ribbon buttons i've added but need them to "see" changes in the results of Named Expressions to do things like change buttons from displaying "Enabled" to "Disabled", etc. eg. I click a button to load AutoTurn and the button changes to "Unload Autoturn" or i want to toggle a setting and want it to tell me the state of that setting. I can get all this info in Named Expressions, but can't get a "Sync Item Event" to be triggered on demand outside of the Model, Selection Set, View or Primitive tool changed options that are there in the Customize Ribbon Dialog.
For toolbars i can do this easily by adding the command "TASK RELOAD" to the button command, but the only equivalent i can find for ribbons is "RIBBON REBUILD".
The problem with this is that a ribbon rebuild naturally takes 2 seconds to complete, but i was looking for something lighter that just triggers a reload of ribbon visibility/enable expressions.
OpenRoads Designer 2021 R2 (10.10) | Microstation CE Update 16.2 | ProjectWise CE 3.4
I ended up just supplying two seperate buttons for AutoTurn.
Would be nice to hear what you've found when you succeed.
Ivo Blaauw= = = = = = = = = = = = =Look what the CAD dragged in...