Tool palette image icon file size issues

Tool palette image icon file size issues

Anonymous
Not applicable
1,787 Views
11 Replies
Message 1 of 12

Tool palette image icon file size issues

Anonymous
Not applicable

I am creating a custom tool palette. 
I created custom icons both light and dark versions in adobe illustrator and saved out as PNG files. I then select the images in the tool palette image option both light and dark. Autocad then auto-generates images and uses those instead of the originals I created.

 

The Problem:

Over time, the auto generated images become HUGE in file size (upwards of 64 mg), which severely slows down the tool palette propagation when selected. I have gone in and adjusted the file size in photoshop, but the auto-gen feature in Autocad keeps recreating and increasing file size.

 

I am "guessing" this happens when the end use selects 'view options' on the tool palette and changes the image size.

 

Anyone encounter this issue?
Any ideas for work arounds?

 

 

Autocad 2020.1.2

Windows 10

0 Likes
1,788 Views
11 Replies
Replies (11)
Message 2 of 12

pendean
Community Legend
Community Legend
AutoCAD's ToolPalette creation does not require you to "... created custom icons both light and dark versions ..." at all.

Perhaps you are calling something else in the interface "toolpalettes"?
0 Likes
Message 3 of 12

Anonymous
Not applicable

I have quite a few custom programs I have in the tool palette that I created descriptive images for the function of the utility. Autocad will not create those graphics for me. It will allow you to use text as a descriptor, but I want my UI to be pleasing to work with, Using a tool 100+ times a day, I want it to be a good experience.

0 Likes
Message 4 of 12

cadffm
Consultant
Consultant

Hi  

If i am right, away from keyboard, i think it isn't usual that Acad rewrite the png, unless the files & links inside the atc files are correct.

 

Do you know when Acads creating new files?

You forces this, but by which step?

Hmm

 

 

Your TP path is set to "Path-X"

your palette ATC files are in a sub-directory palettes and PNGs are located in another sub-directory Images?

Just a question, because i saw issues if not.

 

Sebastian

0 Likes
Message 5 of 12

Anonymous
Not applicable

I have not sure when Autocad Does this. I will run some experiments to find out.

 

Thank you for the response.

0 Likes
Message 6 of 12

Anonymous
Not applicable

I just ran some tests on a png file created at 201px x 201px

(no magic to the 201px, I originally started with a 48px image but grabbed an existing one to experiment)

 

Creating a new palette command I picked both the light and dark version of the png file.

I then changed the color theme in Autocad from 'Dark' to 'Light and back again.

 

I then viewed the ToolPalette/Palettes/Images directory

 

There are the two images that were created by Autocad  (with today's date)

Doing this with the dark theme active, it created the dark theme png file that expanded to 804k (quadrupling the original size)

The light theme version that was created was at 402k. (doubling the original size)

 

Thank you for your response.

 

0 Likes
Message 7 of 12

qnologi
Advisor
Advisor

"I have quite a few custom programs" 

 

Can these be done with a .lsp?

qnologi
0 Likes
Message 8 of 12

Anonymous
Not applicable

Not sure what you are saying here. Create the image files with lsp?

I have thought to edit the .atc files directly but that would be a lot of work.

 

Any other thoughts?

0 Likes
Message 9 of 12

qnologi
Advisor
Advisor

I was wondering if any of the functionality of the "I have quite a few custom programs" could be done with the help of a .lsp routine?

qnologi
0 Likes
Message 10 of 12

Anonymous
Not applicable

Yes, the custom programming is all in lsp.

0 Likes
Message 11 of 12

RDunkley
Advocate
Advocate

I am having the same issue..? Has anyone else come across this or have a solution?

Currently using Civil 3D 2024 & AutoCAD 2025
0 Likes
Message 12 of 12

Valentin_CAD
Mentor
Mentor

@RDunkley ,

 

The Button Image allows you to export as (*.bmp; *.rle, or *.dib).

Although the properties will allow you to select a *.png file, I would prefer one of the above format. 

ValentinWSP_2-1631098445360.png

 

Also, take in consideration the pixels for "Small images" (16 X 16 pixels) and "Large image" (32 X 32 pixels).

ValentinWSP_1-1631097994994.png

 

Also consider the suggestions on this link:



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes