Where do you get your MACRO ICONS

I’ve developed a bunch of VBA macros that I depend on regularly. I have them in a custom toolbar, but they all have the same default SolidWorks icon.

  1. Have you found a ‘library’ of useful icons that work well for this purpose?

  2. Do you have a utility that makes it quick and easy to make your own custom icons?

Thank You

Make your own in MS Paint

I did find this tip at https://www.javelin-tech.com/blog/2020/10/creating-macro-buttons-in-solidworks/

Extra:
As you can see above, the Macro button has a generic icon image. If you want to apply a unique image for the Macro button, click “Choose Image” under “Appearance” in Step7. SOLIDWORKS provides bitmap images to use for custom buttons which can be found in install_dir\data\user macro icons.

(Eg. C:\Program Files\SOLIDWORKS 2020\SOLIDWORKS\data\user macro icons)
You can also create your own bitmap images that are 16×16 pixels, 256 colours, and with a white background.

In my case, the path is C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\data\user macro icons
It only contains 14 icons.

Personally i “created” mine in PPT and then save as png then convert to bmp…

Most of the time i will get the “base icon” (eg: icon for Save, Dimension, Note, etc) from solidworks help page. After that change the icon colour using PPT recolour function so that it will not get confuse with the original icon. In some cases, i will add some additional symbol (eg: arrow for export, x for clear, etc)
image.png

I find images on google
image.png

I don’t use icons for macros because vba icons look awful. Explanation is enough for me. Macro icons made with C# are nice.
2022-08-15_09-08-58.png

I make my own with paint.

image.png

I came here to say this.

So,

Sorry to raise this from the dead, but…

Claude and I built a task pane do-hicky yesterday that will contain links to the VBA macro’s I use most frequently. It’s in CSharp, and I wish I could tell you more, but I’m completely in the dark about how it was done :zipper_mouth_face:

If anyone is interested, I’ll zip up all the source and post it.

Anywho, I found this icon pack (it was originally a .bmp, but couldn’t upload that)

It’s great, but it’s a bit too small. Extracting the ones I want, they are only 25 pixels. I’d love to find this in either 32 or 64 pixel width.

Any ideas?

Thanks

BMP inside.
SW_ICONS_BIG.zip (978.3 KB)


Some of my 20x20 pixel button icons for the panel macro buttons. The BMP is in the archive.
icons.zip (35.2 KB)

Thanks. I got my friend Claude to scale the existing file up. It’s attached.

I didn’t know you could make a button to lunch a macro. Is there a tutorial that tells someone how to set it up?

Thanks Jim. I will have to do that with my macros i use regularly.

I like Arthur’s work on this subject. He also has many free resources; I know many people on this forum know about them, I just wanted to remind them, maybe someone would like to take a look.

What I usually do is use Paint. Actually, someone answered this before; macro icons have very poor visuals, especially in Switchboard. Excel is much better in this regard. Anyway, I’m looking forward to downloading and examining all the icons shared here.

I’ve been getting a lot of mine from https://www.flaticon.com/ recently. Sometimes need to experiment with search terms a bit to find one related to your macro function but I’m happy with the results I’ve been getting.