.Rui file contains unused and old macro's

Hi,

I was just working on my toolbar when I found some interesting stuff inside the .rui file. ( I Was looking in notepad++)

I found at least 1 macro that is not in my toolbar.
Why does Rhino keep a macro that is not in any toolbar group?

Macro that is not used:

Macro that is being used:

looking at the code I think the not used button is a older version of Rhino (probably RH7), button.

Can I purge my .rui file in a way?

another example of 2 macro’s where 1 is from RH7 and one from RH8:

RH7


RH8

The macro library for the .rui does not have a function to delete any unused or no-longer-used macros, so that’s probably what you’re seeing. It has been this way since the beginning of the new toolbar system. I have tons of these as well, I did some cleanup, but a number remain still. One way to get rid of them is to edit the macro library directly (via the Macros command interface) and delete any unused macros you find.

Ah yes this worked. Tnx @Helvetosaur

Removed a lot of unused old macro’s.

I also need to correcy my self, it seems that my view of what is RH7 and RH8 is incorrect.
When all these inputs are the same:


its saved as 1 text field, when there is a difference it saves every field separately

As shown here:

@Helvetosaur what size is your .rui file? I made all new .svg pictograms for my toolbar but now the file has gone from 550kb to 4000 kb :grimacing:. Is this correct?

My custom .rui has 28 toolbars with maybe 80 custom .svgs and some copies of standards. It is 3200 kb.

Hmmm then I dont know why my file is so big. I have way less.
3 toolbars, with something like 40 macro’s in total.

Maybe your .svgs are more complicated? Mine are very simple mostly.

hmm that might be, I also have dark and light mode svg’s (that makes the total of 40 svg’s)

Yep, no dark mode ones here either.