ColinHolloway Posted April 9, 2013 Posted April 9, 2013 Hi All, I have created a menu file that contains a ribbon tab. I can load the menu and make sure the pull down and toolbars are visible, but I can't find a way using LISP to make the new ribbon tab visible. I know that I can go to the CUI manager, edit the workspace, tick the ribbon tab and save the workspace, but I need to do all this via lisp on startup. Any and all help greatly appreciated. Colin Holloway Quote
gS7 Posted April 9, 2013 Posted April 9, 2013 Try This (command "MENULOAD" [color="blue"]"your Cuix File Path"[/color]) (menucmd "P20=+[color="blue"]Menugroupname[/color].POP1") (menucmd "P20=*") (COMMAND "WSCURRENT" "") Quote
ColinHolloway Posted April 9, 2013 Author Posted April 9, 2013 Hi gS7, I am already using these commands to display the Pull Down menu, but I need a way to display the new Tab on the Ribbon menu. Colin Holloway Quote
gS7 Posted April 10, 2013 Posted April 10, 2013 @ ColinHolloway Can u Please Attach Your Cuix File ? Quote
BlackBox Posted April 10, 2013 Posted April 10, 2013 This should do what you're after: http://www.theswamp.org/index.php?topic=42241.msg473846#msg473846 The code posted is for a CommandMethod Method named DOCRIB, and can be ported to a LispFunction Method if usin the Command version is not ideal. Quote
ColinHolloway Posted April 6, 2014 Author Posted April 6, 2014 Hi All, I did end up finding a Lisp command that allowed me to do this! It's not very well documented, but providing the menu is loaded, the +ribbon command does the job. +ribbon . The element.id is from the required ribbon tab as given in the CUI. Hope this helps someone else looking for this solution. Colin Holloway Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.