Jump to content

Problem with Icons visualization from custom Toolbars in AutoCAD 2019


Recommended Posts

Posted (edited)

Hello everyone !

 

1. I am creating the .mnu , .mnr , .cuix file using AutoLisp and are stored in a new folder as :

       C:\Users\PCjohn\AppData\Roaming\Autodesk\AutoCAD 2019\R23.0\enu\Support\Topo MNU

 

2. In previous AutoCAD versions ( older than 2019 ), I am using the below way to define a custom Toolbar :

.mnu file

***MENUGROUP=MENIU_Topo
//
***POP16
**TOPO_MENIU

.......

***TOOLBARS
//
**TB_TOPO_U
//
ID_TbTopo     [_Toolbar("Toolbar Description", _Top, _Show, 200, 350, 1)]
ID_Comd1        [_Button("Description Comd1", "C:/Topo/Icon/Comd1.bmp", "C:/Topo/Icon/Comd1.bmp")]^C^C_Comd1
ID_Comd2        [_Button("Description Comd2", "C:/Topo/Icon/Comd2.bmp", "C:/Topo/Icon/Comd2.bmp")]^C^C_Comd2
ID_Comd3        [_Button("Description Comd3", "C:/Topo/Icon/Comd3.bmp", "C:/Topo/Icon/Comd3.bmp")]^C^C_Comd3

. . .

mnuFilePath = C:\Users\PCjohn\AppData\Roaming\Autodesk\AutoCAD 2019\R23.0\enu\Support\Topo MNU\Topo.mnu

(command "_.CuiLoad" mnuFilePath) ; convert .mnu to .cuix file

(menuCmd "P16=+MENIU_Topo.pop16") ; load custom Menu

(command "_.ToolBar" "MENIU_Topo.TB_Topo_U" "t" "2,3") ; load custom Toolbar

In AutoCAD 2000 to 2018 is working fine .

 

In AutoCAD 2019 , when I create the Toolbar in the first instance it is ok . But in the following uses of AutoCAD ,

the icons pictures appear as a question mark (picture attached ) and not all of them . 

65568744_ToolBar1.jpg.d45554a823f7fafc77196142dd3d316b.jpg

 

3. What is causing this problem ?

    It is something wrong with the icons files path ? All the pictures are in the same folder .

    The old style of Toolbars is not accepted in the new AutoCAD ?

 

Somehow , the bmp files can't be found by AutoCAD .

 

Any ideas ?

 

Regards ,

 

Costin

 

 

Edited by Costinbos77
Posted

Not really a lisp question. Make sure you reload your toolbar. A cuix file is actually like a zip file so you can manually add the bmp files to this file so you don't need a path

bmp-support-path.jpg

Posted

You need the latest service pack 2019.1.2 to fix this. Long thread HERE about it.

Posted (edited)

Thank you very much for your help ronjonp .

 

That is the problem .

 

I am happy because I am not using AutoCAD 2019 . I came over this problem when I want to install my Toolbars in my friend's computer . And I was very frustrated, thinking my lisp is nat working. 

 

I am hoping AutoCAD 2020 will not have this problem anymore. 

 

 

Edited by Costinbos77
Posted
13 minutes ago, Costinbos77 said:

Thank you very much for your help ronjonp .

...

I am hoping AutoCAD 2020 will not have this problem anymore. 

 

 

You're welcome. :)

I've been using 2020 since it came out and it does not have the toolbar bmp issue.

  • Like 1
Posted

Good news then. The next step will be AutoCAD 2020 .

 

P.S.

 

Did you find any other issues with A 2020 ?

Posted
28 minutes ago, Costinbos77 said:

Good news then. The next step will be AutoCAD 2020 .

 

P.S.

 

Did you find any other issues with A 2020 ?

Nope.

Posted

Thanks ronjonp ! 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...