Is it possible to call a custom ribbon - from a custom ribbon? What would the syntax be, if this is possible?
Thanks,
John
Hi John,
I do not understand what do you mean "to call ribbon from a ribbon". What do you want to achieve?
Anything in ribbon is "a command", linked to e.g. key-ins. So what should happen when the ribbon will be "called from ribbon"?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan, I'm making some ribbons that will allow users not familiar with our levels and file system. The ribbons will be used in Bentley View actually, but if I have a ribbon called main_location and another ribbon called off_sites, I'd like to be able to have a button where the user can click the "off_sites" button and open that ribbon. Rod Wing showed me the ribbon from the key-ins window but I haven't successfully been able to "call a ribbon, from a ribbon" by clicking on the name. Yes, the user could select from the provided dropdown built into microstation. I simply want to provide the convenience right there, built into ribbon 1 to call ribbon 2.
John Schenk said:but if I have a ribbon called main_location and another ribbon called off_sites
It's still not clear what do you mean by "ribbon". I guess that, by "I have a ribbon", you mean "workflow" that defines ribbon bar currently displayed in MicroStation GUI.
John Schenk said: I'd like to be able to have a button where the user can click the "off_sites" button and open that ribbon.
Translated to more precise (in my opinion) terminology and description, is it about:
John Schenk said:but I couldn't find one that would actually call a ribbon that I'd created.
To change active ribbon workflow, use key-in ribbon setworkflow <name of the workflow> (e.g. ribbon setworkflow drawing).
ribbon setworkflow <name of the workflow>
ribbon setworkflow drawing
Hmmm, funny, when I right click on the "ribbon area" it doesn't say " customize workflow", it says "Customize Ribbon". However, thanks on the lesson on semantics, Rod seemed to understand the question.
John Schenk said:when I right click on the "ribbon area" it doesn't say " customize workflow", it says "Customize Ribbon"
It's correct, because it means "customize everything that can be displayed as ribbon bar". It includes all workflows and extra definitions like popups. But when a new ribbon bar (specific ribbon) is to be created, the button is named "New workflow".
John Schenk said:However, thanks on the lesson on semantics, Rod seemed to understand the question.
I usually customize ribbon "in a developers way" using xml definition file, so I tend to stick to exact terminology, because this way does not forgive any inaccuracy :-)
John Schenk said:Hmmm, funny, when I right click on the "ribbon area" it doesn't say " customize workflow", it says "Customize Ribbon".
Despite of it's ribbon or workflow, does the key-in I mentioned above work for you?