Icons not showing up in custom toolbar

Icons not showing up in custom toolbar

stanovb
Advocate Advocate
1,139 Views
23 Replies
Message 1 of 24

Icons not showing up in custom toolbar

stanovb
Advocate
Advocate

I have a custom toolbar created in my cui. A good number of the icons show up, but 5 of them do not. I have the location of the icons in my support path (which is a folder on my work network, not a local folder) & I have mapped the icon location in the cui, but it still does not show up. I searched for other threads about this issue & tried to follow the directions but haven't gotten it to work. I would appreciate any suggestions anyone has. There must be something I am forgetting. I have tried everything that I can think of.

stanovb_0-1658666130121.png

 

0 Likes
1,140 Views
23 Replies
Replies (23)
Message 2 of 24

stanovb
Advocate
Advocate

This is strange. The toolbars that have the missing icons the macro doesn't work in, but I can run the same macro from a tool palette

0 Likes
Message 3 of 24

paullimapa
Mentor
Mentor

if bitmap images are not corrupt and this happens, what I've done in the past is to make a copy and give it a new name. Then within the CUI next to Small Image/Large Image I would select on the dots and select those newly name bitmap images and usually this would do the trick.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 24

stanovb
Advocate
Advocate

Its strange because it shows up in the toolbar preview when I'm in the cui editor, but when I exit out of it its not there. I tried your suggestion, but no luck. I even tried to point to my local support/icon folder since AutoCAD 2023 seems to want to look for it there, but that didn't work either.

0 Likes
Message 5 of 24

paullimapa
Mentor
Mentor

That is strange.  What happens if you create a whole new command using the same bmp will it stick then?  Or create a new command using a different bmp? 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 6 of 24

stanovb
Advocate
Advocate

I haven't tried that yet, but basically I created a new command & then assigned it the BMP file. Similar to all of the other buttons that were created in previous versions of AutoCAD. It shows up in the preview but not when I exit out of the cui.

0 Likes
Message 7 of 24

ronjonp
Mentor
Mentor

You might try deleting the associated *.MNR file in the same directory as your CUI then restart CAD.

0 Likes
Message 8 of 24

stanovb
Advocate
Advocate

yeah I tried that but didn't help. There must be something I'm forgetting but not sure what.

0 Likes
Message 9 of 24

stanovb
Advocate
Advocate

I finally figured out what the problem was although I don't completely understand why this was the case. My toolbar is actually in the acad.cuix. I was editing the toolbar in my custom cuix thinking that was what I was using. I was editing that & it looked good on the preview but then it wasn't showing up when I exited the cui editor. Once I edited the toolbar in the acad.cuix it showed up & worked as expected. I've also been able to fix the icons that were showing up as a cloud with a question mark. Maybe the bmp file got moved or renamed.

0 Likes
Message 10 of 24

paullimapa
Mentor
Mentor

glad you figured it out...it makes sense that the icons didn't show up in the acad.cuix since you were actually editing the same toolbar but in your custom menu.  Of course don't know how your toolbar ended up in the acad.cuix.  Time to decide to keep one and not both?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 11 of 24

stanovb
Advocate
Advocate

Yeah, you're probably right. The cui was handed down to me from a previous person. I'm not sure where I go to have the toolbar that is displayed in AutoCAD to point to the custom cuix & not acad.cuix

0 Likes
Message 12 of 24

paullimapa
Mentor
Mentor

No you don't need to point the toolbar inside acad.cui to display what's in the custom.cui.

Just delete the duplicate toolbar which you are no longer modifying in acad.cui.

Then you only have the toolbar in your custom.cui to deal with.

Just make sure the toolbar from your custom.cui is displayed when you're in AutoCAD


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 13 of 24

stanovb
Advocate
Advocate

That's what i'm not sure how to do. how do I get the custom toolbar to display instead of the acad.cuix.

0 Likes
Message 14 of 24

paullimapa
Mentor
Mentor

one way to do this is as shown in this youtube video starting at timestamp 1:42

make sure menubar is set to 1 then click on Tools>Toobars and if you really have toolbars under the custom.cui they will show up here under Custom.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 15 of 24

Sea-Haven
Mentor
Mentor

I have for years avoided using acad cuix etc always a custom mnu, as I said for toolbars start with a mnu not a cui then can simply use menuload to load the custom menu.

 

As I started coding when cui's di not exist hence used mnu. So I am saying keep your custom menu. Also when you upgrade your custom menu is ready to go.

 

Make a copy of your cuix and rename to .zip then have a look inside you will see toolbar definitions. You can its a bit of effort remake a mnu. The mnu is a text file so use notepad etc.

 

 

 

***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"))

 

 

0 Likes
Message 16 of 24

stanovb
Advocate
Advocate

Thanks I'll check it out. 

0 Likes
Message 17 of 24

stanovb
Advocate
Advocate

These were all created from custom mnu files before the cuix days. I inherited these from someone else. I thought people were getting away from them but I guess I'm wrong about that 

0 Likes
Message 18 of 24

Sea-Haven
Mentor
Mentor

You can do either way some will always say use acad.cuix etc its a choice. For me much easier to edit a simple text file. I have write mnu for like block inserts. Doing for a client with 1100 blocks.

 

I had 8 staff with all menu's on server, so I would update a menu / programs and do menuload saving to server. The new menu was available then to user on opening Acad. 

 

Re upgrades have a setupnew.lsp that does all the hard work of setting up a new ACAD including loading the custom menu's.

0 Likes
Message 19 of 24

stanovb
Advocate
Advocate

I really feel dumb but I had them both turned on lol. I was looking at the one from acad.cuix when i was modifying the cui & not my custom one, but that one is there too. Now i can just edit that one & turn the acad one off.

0 Likes
Message 20 of 24

paullimapa
Mentor
Mentor

Better yet use CUI command and select acad toolbar section and just delete those duplicates 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes