Toolbars missing error in -toolbar command in custom CUI.

Toolbars missing error in -toolbar command in custom CUI.

ShricharanaB
Advocate Advocate
563 Views
4 Replies
Message 1 of 5

Toolbars missing error in -toolbar command in custom CUI.

ShricharanaB
Advocate
Advocate

Hi,

 

I created a custom CUI by copying the default AMPP CUI to use as enterprise CUI and added some stuff to it.

And I'm using the custom profile which loads the custom CUI.

However, when I'm using the custom profile and in tern the custom CUI, I get the error "Toolbar not found." when I use "-toolbar" command and select type in "view" without the quotes.

This toolbar is available in the default CUI. When I use the same command and input in the default CUI, I get the options to show it in various locations. 

Note: In the custom CUI under toolbars I do have all the toolbars available in the default CUI.

 

What am I missing here? 

 

Any help is much appreciated. 

Thanks in advance.

0 Likes
564 Views
4 Replies
Replies (4)
Message 2 of 5

Sea-Haven
Mentor
Mentor

As a alternative I basically hand make my custom toolbars not using the CUI. So they start as .mnu files, they will be converted to a CUIX when you menuload. So they have no other information from an original cuix. You can copy and paste the details from the CUI editor into notepad, a sample is below.

 

 

***MENUGROUP=CONTOURS
***TOOLBARS
**ALANSCONT
ID_ALAN_C    [_Toolbar("Alans1", _Left, _Show, 0, 0, 1)]
Alloff       [_Button("All Off","Alloff.BMP","alloff.BMP")]^c^c^c(setq surface "_COGG All Off")(load "vercheck")(load "listselect")(load "changecontours6")
50mm         [_Button("50mm cont","50mm.bmp","50mm.bmp")]^c^c^c(setq surface "NS 0.05 Contours")(load "vercheck")(load "listselect")(load "changecontours6")
100mm        [_Button("100mm cont","100mm.BMP","100mm.BMP")]^c^c^c(setq surface "NS 0.1 Contours")(load "vercheck")(load "listselect")(load "changecontours6")
200mm        [_Button("200mm cont","200mm.BMP","200mm.BMP")]^c^c^c(setq surface "NS 0.2 Contours")(load "vercheck")(load "listselect")(load "changecontours6")
500mm        [_Button("0.50m cont","500mm.BMP","500mm.BMP")]^c^c^c(setq surface "NS 0.5m Contours")(load "vercheck")(load "listselect")(load "changecontours6")
1m           [_Button("1m cont","1m.BMP","1m.BMP")]^c^c^c(setq surface "NS 1m Contours" )(load "vercheck")(load "listselect")(load "changecontours6")
Triangles    [_Button("Triangles","TRI.BMP","TRI.BMP")]^c^c^c(setq surface "NS Triangles" )(load "vercheck")(load "listselect")(load "changecontours6")
Slope        [_Button("Slope","SLOPE.BMP","SLOPE.bmp")]^c^c^c(setq surface "Slope Arrows & Catchments" )(if (not AH:Vercheck)(load "vercheck"))(if (not AT:ListSelect)(load "listselect"))(if (not AH:Changecont)(load "changecontours6")

 

 

SeaHaven_0-1684885735944.png

 

 

Message 3 of 5

ShricharanaB
Advocate
Advocate

Hi, 

 

Thank you for the response.

 

I don't understand the line "You can copy and paste the details from the CUI editor into notepad". By CUI editor do you mean the one that pops up with CUI command? if so I don't see any text like you have written to copy. Just the below. If not, how do I open this CUI editor?

ShricharanaB_1-1684907672040.png

 

0 Likes
Message 4 of 5

rgrainer
Collaborator
Collaborator

Take what @Sea-Haven has posted, save it into a notepad file as "yourmenuname".mnu .
name it something that makes sense to you. Must have an mnu extension. In a folder that is in your support paths.
In acad, type menuload, enter then browse to and load the file you just saved.

 

Message 5 of 5

Sea-Haven
Mentor
Mentor

I use the icons etc from CAD for my icons even though in this case I did make my own icons as there was none that matched like 0.1, so you can copy the icon name, any icon in the CUI is available. The example is a custom toolbar menu for 1 task, others I have, I have taken the command from the cui, this example is taking CIV3D commands but in a pop menu when working in the drafting workspace. So no need to change to CIV3D workspace to run like 1 command. Trying to type those commands would result in typos I am sure.

 

***MENUGROUP=SURFAL
***POP15
**SURFALIGN
[Surfalign]
[SURFACES]
[--]
[Create Surface]^c^c_AeccCreateSurface
[Create Surface from DEM]^c^c_AeccCreateSurfaceGridFromDEM
[Create Surface from TIN]^c^c_AeccCreateSurfaceFromTIN
[->Edit Surface]
[Edit Surface Style...]^c^c_AeccEditSurfaceStyle
[Edit Surface Properties]^c^c_AeccEditSurfaceProperties
[Add Line]^C^C_AeccAddSurfaceLine
[Delete Line]^c^c_AeccDeleteSurfaceLine
[Swap Edge]^c^c_AeccEditSurfaceSwapEdge
[Add Point]^c^c_AddPointToSurface

 

Your image is top level next level down is what you want. Showing values for each icon pretty sure Command is there as an item. 

 

Ribbons are a problem and can only be made using CUI. But in saying that have looked at making a CUI from scratch a CUIX is actually a ZIP file but renamed. So can get inside it and look, the problem is they are made up of numerous XML files.  Still on my to do list say use excel to make a CUI file. 

I will try to post some screen grabs of edit the cui.