Enable/Disable Ribbon Buttons using Named Expressions?

Hi,

I am working in MicroStation CE Update15. I need to enable /disable ribbon menu buttons based on a variable value.

When i searched in community, many suggestions was can be done through "Named Expressions".

Please provide me an simple example using Named Expressions to achieve this. 

Parents
  • If you want an example of how this is done, download our freeware macros from here.
    https://envisioncad.com/freeware/microstation-resources/

    After following the install instructions you will have an EnvisionCAD_gui.dgnlib file that contains custom toolboxes, ribbons, and associated Named Expressions.

    If you open the dgnlib file and open the Named Expressions dialog you will see these custom assignments.

    In the Customize dialog if you open the associated toolbox button you will see how the Named Expression is utilized.

    Finally, if you open the EnvisionCAD_Freeware_CONNECT.cfg file in Notepad you will see the variable assignments.

    Toggling those variable values between 0 and 1 will turn off/on the display of the toolbox and ribbon buttons.

    Rod Wing
    Senior Systems Analyst

Reply
  • If you want an example of how this is done, download our freeware macros from here.
    https://envisioncad.com/freeware/microstation-resources/

    After following the install instructions you will have an EnvisionCAD_gui.dgnlib file that contains custom toolboxes, ribbons, and associated Named Expressions.

    If you open the dgnlib file and open the Named Expressions dialog you will see these custom assignments.

    In the Customize dialog if you open the associated toolbox button you will see how the Named Expression is utilized.

    Finally, if you open the EnvisionCAD_Freeware_CONNECT.cfg file in Notepad you will see the variable assignments.

    Toggling those variable values between 0 and 1 will turn off/on the display of the toolbox and ribbon buttons.

    Rod Wing
    Senior Systems Analyst

Children