What is the image size for the macro button?
What is the image size for the macro button?
There is no normal specification for image size in pixels for the latest versions of SolidWorks. I did a little experiment and present the results. Ideally, the picture should be in .BMP format, white color will be perceived as a transparent background. Image dimensions should be 20x20 pixels or less. If the image is larger, it will shrink. It should be noted that this is true for the interface with small button icons.
- Stefan Sterk
- Posts: 37
- Joined: Tue Aug 10, 2021 2:40 am
- x 51
- x 77
Re: What is the image size for the macro button?
Codestack.net also says to use 20x20px for SOLIDWORKS newer then 2015.
"Optionally specify the icon. For SOLIDWORKS 2015 or older use 16 by 16 bitmap, for all newer version use 20 by 20 bitmap. Use white color as the transparency key."
SOLIDWORKS icon size on macro features also starts at 20x20
Recommended sizes are:
Small: 20 pixels wide X 20 pixels high
Medium: 32 pixels wide X 32 pixels high
Large: 40 pixels wide X 40 pixels high
"Optionally specify the icon. For SOLIDWORKS 2015 or older use 16 by 16 bitmap, for all newer version use 20 by 20 bitmap. Use white color as the transparency key."
SOLIDWORKS icon size on macro features also starts at 20x20
Recommended sizes are:
Small: 20 pixels wide X 20 pixels high
Medium: 32 pixels wide X 32 pixels high
Large: 40 pixels wide X 40 pixels high
Re: What is the image size for the macro button?
The Austrian reseller Planet Software recommends bitmaps with 22x21. -> https://www.cad.at/wissen/blog/individu ... ks-makros/
He also refers to an online converter with which you can make the conversion for free.
-> https://online-converting.com/image/convert2bmp/
He also refers to an online converter with which you can make the conversion for free.
-> https://online-converting.com/image/convert2bmp/
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.
Re: What is the image size for the macro button?
We can check such options.Hansjoerg wrote: ↑Thu Aug 31, 2023 6:59 am The Austrian reseller Planet Software recommends bitmaps with 22x21. -> https://www.cad.at/wissen/blog/individu ... ks-makros/
width 22 height 21
height 21 width 22 As you can see, it turns out badly.
- AlexLachance
- Posts: 2196
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2382
- x 2025
Re: What is the image size for the macro button?
I use 22x22 on most but I have some 128x128 which come out perfectly also.
I guess as long as it's square?
I guess as long as it's square?
Re: What is the image size for the macro button?
These are 256 x 256 and work for me.
- Attachments
-
- Macro.zip
- (8.06 KiB) Downloaded 178 times
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: What is the image size for the macro button?
I think that your size 22x22 was compressed to 20x20, but it coincided that it was not visually noticeable.
Re: What is the image size for the macro button?
Just for information, what does your 256x256 icon look like (upper left) and what does the adapted 20x20 look like (upper right).
I love beautiful icons. Bottom left, as if I made myself an STL icon. On the right are examples of icons. It is very convenient to take standard Solidworks icons and adapt them by adding labels.
Re: What is the image size for the macro button?
Hello Mikhov,
can you describe how and with what software you create the icons?
Artem gave me a tip a long time ago to try inkscape.
But so far I haven't found out how to save my graphic in BMP format in Inkscape.
How do you do that with your STL icon at the bottom left that the fine geometries are so well recognizable? With my icons everything is always blurred and absolutely not recognizable.
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.
Re: What is the image size for the macro button?
This is what my Macro Icons look like.mihkov wrote: ↑Fri Sep 01, 2023 2:34 am Just for information, what does your 256x256 icon look like (upper left) and what does the adapted 20x20 look like (upper right).
I love beautiful icons. Bottom left, as if I made myself an STL icon. On the right are examples of icons. It is very convenient to take standard Solidworks icons and adapt them by adding labels.
stl_l.jpg
I'm less worried about beauty, and more worried about easily identifiable.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: What is the image size for the macro button?
I've used both MS Paint and Gimp.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: What is the image size for the macro button?
I mostly just used powerpoint to create my macro icon... mainly because it can quickly recolor a solidworks icon that i grab from the help page
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
Re: What is the image size for the macro button?
It so happens that I use Photoshop. This is too much for making icons - but it is convenient for me.
Somewhere on the Internet I found a canvas with most of the Solidworks icons on a white background. And I just take them and modify them.
I create a new 20x20 pixel file, copy the appropriate stock icons and combine them or recolor them.
I save it in BMP - the white color will be transparent.
Here is an example of how I make an Icon for saving PDF. You will need minimal skills in working with layers and understanding what transparency is. Canvas with icons in the archive and two PDF icons too.
It is absolutely clear that we are simply getting used to the location of the icon and its shape and color image. I'm just obsessed with beauty)))
- Attachments
-
- ico.zip
- (331.11 KiB) Downloaded 220 times
- AlexLachance
- Posts: 2196
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2382
- x 2025
Re: What is the image size for the macro button?
It would be lovely if you would share some of your icons, they seem really well made and I'm sure a lot of people would be happy to use them and also find them "collected" in a single place such as a thread on a forum.mihkov wrote: ↑Wed Oct 11, 2023 3:14 am It so happens that I use Photoshop. This is too much for making icons - but it is convenient for me.
Somewhere on the Internet I found a canvas with most of the Solidworks icons on a white background. And I just take them and modify them.
I create a new 20x20 pixel file, copy the appropriate stock icons and combine them or recolor them.
I save it in BMP - the white color will be transparent.
Here is an example of how I make an Icon for saving PDF. You will need minimal skills in working with layers and understanding what transparency is. Canvas with icons in the archive and two PDF icons too.
ps.png
It is absolutely clear that we are simply getting used to the location of the icon and its shape and color image. I'm just obsessed with beauty)))
ps1.png
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1471
Re: What is the image size for the macro button?
This became icon OCD thread
There are program to extract icons from dll and exe files.
Screenshot then crop and scale works too.
I save them to PNG. Easier to keep transparent background.
Usually use Paint 3D.
Found out VS has icon editor too.
Good to maintain consistency with the program.There are program to extract icons from dll and exe files.
Screenshot then crop and scale works too.
I save them to PNG. Easier to keep transparent background.
Usually use Paint 3D.
Found out VS has icon editor too.
Re: What is the image size for the macro button?
Not all of my icons are 20x20 pixels, some are smaller. They are in the archive.AlexLachance wrote: ↑Wed Oct 11, 2023 9:02 am It would be lovely if you would share some of your icons, they seem really well made and I'm sure a lot of people would be happy to use them and also find them "collected" in a single place such as a thread on a forum.
- Attachments
-
- my_ico.zip
- (16.77 KiB) Downloaded 252 times
Re: What is the image size for the macro button?
Thank you for sharing the icon collection.mihkov wrote: ↑Wed Oct 11, 2023 3:14 am Somewhere on the Internet I found a canvas with most of the Solidworks icons on a white background. And I just take them and modify them.
I create a new 20x20 pixel file, copy the appropriate stock icons and combine them or recolor them.
I save it in BMP - the white color will be transparent.
With the help of your tutorial and the collection of icons I now also manage to create beautiful icons.
With a little practice that works even only with Paint.
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.