Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Menugroup Name and Element ID for Custom CUI

7 REPLIES 7
Reply
Message 1 of 8
ArchD
1360 Views, 7 Replies

Menugroup Name and Element ID for Custom CUI

I'm trying to bring up a ribbon tab that is found on an enterprise CUI using the +RIBBON command. 

 

When I put in the menugroup name.element id, I get the error "ERROR: The specified tab cannot be found."

 

I tried using a basic autocad one such as

 

(command "+RIBBON" "ACAD.ID_TabAnnotate")

 

and I still get the error.

 

Is the +RIBBON command broken in 2017? If so, does anyone know of a good .NET code that would let me load a ribbon tab?

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
7 REPLIES 7
Message 2 of 8
cadffm
in reply to: ArchD

Have you checked Menuname and the ID?
Is loaded
and
existing with with that id?
in current Workspace active?

"Is the +RIBBON command broken in 2017?"
Use +Ribbon command by hand in commandline,
perhaps with another item ( casesensive the must be ident. )

Tomorrow i will test it myself.

Sebastian

Message 3 of 8
ArchD
in reply to: cadffm

I can use the +RIBBON command, but I can't get it to work. I don't know if it's user error or what, but I'm leaning that it is.

 

When I go into MENULOAD my enterprise CUI shows up in the list as _CPH-ENTERPRISECUI

 

The tab in question has an Element ID of RBN_200_0FA35 in the properties of the CUI.

 

I was under the impression that the command should work if I did +RIBBON _CPH-ENTERPRISECUI.RBN_200_0FA35

 

When I do MENUNAME, it reads the c3d menu. Is there a way to switch the MENUNAME to read from the enterprise menu just long enough to add the tab?

 

 

 

 

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
Message 4 of 8
cadffm
in reply to: ArchD

In 2018 it works fine, i could not testing in 2017.
Main cuix
Enterprise cuix
Partial cuix

+ribbon works (if Menu and Tab is loaded in active workspace, clear)

Sebastian

Message 5 of 8
cadffm
in reply to: cadffm

and 2017. works too

170731_RIBBONcommand.png

Sebastian

Message 6 of 8
ArchD
in reply to: cadffm

Okay, this is a user error on my part. Apparently +RIBBON only works on tabs that are already added to the work space and essentially just acts as if you clicked on the ribbon name with your mouse. 

 

I'm looking for a way to add a tab from a partial CUI through Autolisp or .NET to a work space that does not already have the ribbon tab added to the work space, but has the partial CUI loaded.

 

Do you guys know how to do that?

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
Message 7 of 8
cadffm
in reply to: ArchD

Load (loaded) TAB into active Workspace?

Not with plain Lisp, i think so.
.net is possible. Example code: http://www.theswamp.org/index.php?topic=42241.msg473846#msg473846

I define my TABs in custom CUIX as "automatically add to the current workspace",
<but this is not working for enterprisemenu (for me?)>

Sebastian

Message 8 of 8
ArchD
in reply to: cadffm

Yeah, mine are set to show for all workspaces, but for some reason they do not work as intended in enterprise form. 

 

I came across another post from the swap from the Blackbox poster from two years prior basically asking the same thing I need but never got it working it seems. This post you gave looks like he might have figured it out. Great find, thank you. I'm going down the rabbit hole now. 

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report