Hi,
[quote user="rayjoslyn"]Can the named expressions be used to load template elements into ribbon buttons?[/quote]
I am not quite sure if just a wrong terminology is used or there is a misunderstanding a concept and ribbon customization and dgnlib definitions work:
- Element templates (not template elements) are not related to ribbon (and ribbon buttons) anyhow.
- It's not clear what do you mean by "load ... into ribbon buttons".
Lets make it more clear:
- You can customize ribbon, e.g. to add own buttons.
- Every button (as other ribbon items) contains key-in definition.
- This key-in can be used to active a particular element template (not load, because all element templates are loaded automatically when a design file is opened).
- Every button definition can also contain (optionally) show/hide condition (called "visibility" in CE), which is based on Name Expression.
So all together it would work in this way:
- Based on Name Expression evaluation, a particular button wil be displayed in Ribbon.
- If the button is pushed, specified key-in is sent to MicroStation.
- The key-in has to active some from available element templates. I guess the right key-in is "template active <template group name>\<template name>".
With regards,
Jan