Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: How to load template items into a button group on the ribbon

$
0
0

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:

  1. Based on Name Expression evaluation, a particular button wil be displayed in Ribbon.
  2. If the button is pushed, specified key-in is sent to MicroStation.
  3. 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


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>