TheSwamp

CAD Forums => CAD General => Topic started by: Lupo76 on January 10, 2020, 05:55:03 AM

Title: Load CUIX file - problem with icons
Post by: Lupo76 on January 10, 2020, 05:55:03 AM
Hi everyone,
I have already spent many hours of work on this problem but I had to give up.
Each test in AutoCAD (various versions and clean installations) was unsuccessful :tickedoff:

I just have to load a CUIX file containing a toolbars but unfortunately the icons are always represented with a question mark.
The PNG files of the icons are only placed both inside the CUIX file (as you probably know, the CUIX file is actually a ZIP file ....), and inside a folder added to the search paths.

I am attaching two videos with the tests that I did, and the CUI file with the PNG icons.
Can you help me solve the problem?
What am I doing wrong?

Thanks in advance.




Title: Re: Load CUIX file - problem with icons
Post by: Crank on January 11, 2020, 06:41:58 AM
Title: Re: Load CUIX file - problem with icons
Post by: Lupo76 on January 11, 2020, 09:39:42 AM
  • I think you're only pointing to the location of the icons in a support path. You should (also) point to the location as shown in attached picture.
  • Before copiling the menu, try to delete the .mnr-files first.
  • Autocad has a bug: If there are to many 'Support File Search Paths' (see Options), then it doesn't use any of them when you're compiling the .CUIx. Try to reduce the number of search paths before compiling.

Hi Crank,
I did everything you suggested but it doesn't work.
All this is strange in that you are using another CUIX file which contains PNG files inside, (so in this case I do not have the PNG files of the icons!) And it works correctly !!
So the problem is only with the CUIX file that I have attached here.

Can you try to import my CUIX into your AutoCAD?
Title: Re: Load CUIX file - problem with icons
Post by: Lupo76 on January 11, 2020, 11:25:38 AM
I finally managed to understand the problem.
I have done dozens of tests, restored several times the virtual machine that I use for the tests, and probably in one of these tests I took the wrong CUIX file that used different PNG file names.

Now everything is OK.
Thanks for your help.

Only a small difference between AutoCAD 2020 and previous versions: AutoCAD 2010 only adds the menu and toolbars but does not add the tab to the Ribbons: is it a bug?
Title: Re: Load CUIX file - problem with icons
Post by: Crank on January 12, 2020, 07:27:12 AM
Autodesk has rewritten the Ribbon 2x.
If I remember correctly, the original was from Acad2009 and the later versions from 2010 and 2012. That may explain why it is not backward compatible.
Title: Re: Load CUIX file - problem with icons
Post by: Lupo76 on January 13, 2020, 06:09:06 AM
Autodesk has rewritten the Ribbon 2x.
If I remember correctly, the original was from Acad2009 and the later versions from 2010 and 2012. That may explain why it is not backward compatible.

Sorry,
I meant that: AutoCAD 2020 (and not 2010) only adds the menu and toolbars but does not add the tab to the Ribbons: is it a bug?
Title: Re: Load CUIX file - problem with icons
Post by: huiz on January 13, 2020, 09:48:57 AM
I don't know if it is a bug but probably in your main cui your partial menu is marked as unresolved. Delete that, save the cui and you can add your menu again. Probably that will solve the ribbon issue.
Title: Re: Load CUIX file - problem with icons
Post by: dgorsman on January 13, 2020, 09:52:56 AM
There should be a setting to control merge behavior in partial CUIx files.  Also, are you working with an Enterprise-resident workspace when the partial CUIX is loaded?