Costinbos77 Posted May 18, 2019 Posted May 18, 2019 (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 . 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 May 18, 2019 by Costinbos77 Quote
rlx Posted May 18, 2019 Posted May 18, 2019 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 Quote
ronjonp Posted May 21, 2019 Posted May 21, 2019 You need the latest service pack 2019.1.2 to fix this. Long thread HERE about it. Quote
Costinbos77 Posted May 21, 2019 Author Posted May 21, 2019 (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 May 21, 2019 by Costinbos77 Quote
ronjonp Posted May 21, 2019 Posted May 21, 2019 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. 1 Quote
Costinbos77 Posted May 21, 2019 Author Posted May 21, 2019 Good news then. The next step will be AutoCAD 2020 . P.S. Did you find any other issues with A 2020 ? Quote
ronjonp Posted May 21, 2019 Posted May 21, 2019 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. 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.