Our company changed the logo, and I have to change it also in our Lib.
I wanted to bypass the pixelised version of logo (DEFAULT ICON), and only use the logo as picture.
For that I checked the faq, and there is a category: ""
So I created a .display file
For example in my Lib I only have 3 SC,
<CATEGORY_DISPLAY DOC_VERSION="" AME_VERSION="" >
<CATEGORY ZOOM_MAX="200" DEFAULT_COMP_HEIGHT="40" DEFAULT_ZOOM="120" DESCRIPTION=mylib" ICON="path_to_the_icon\icon.png" ZOOM_MIN="20" DEFAULT_COMP_WIDTH="120" >
<COMPONENT LIBRARY="mylib" NAME="SC1" />
<COMPONENT LIBRARY="mylib" NAME="SC2" />
<COMPONENT LIBRARY="mylib" NAME="SC3" />
As I update my Libraries, I don't see any changes in my Lib, and the icon is still the DEFAULT ICON
Any example for a display file with path to the icon?
Solved! Go to Solution.
Today the category icon is defined in the xbitmap file yourlib/Icons/lib.xbm
Unfortunately we don't yet support png for category icons.
In order to update it, in Tools menu, launch Icon designer, load the png and save it as a xbm file. Overwrite your previous xbm with the new one.
The ICON you are pointing to in the display file will be used for a folder under the main category.
See this example:
Resulting in the following display:
Don't forget to launch Modeling/Update categories to see the result "live".
Thanks for the reply
That means I have no chance to bypass the xbm format for the icon of the Library?
If I import my icon in the icon designer, the result will be extremely pixelised
In the faq I understand that it is possible:
The beginning consists in generic XML information details, you can let as it is:
Then you define the category and the corresponding properties (zoom settings, description …). For the icon, you can write ICON="DEFAULT_ICON" to have the default icon of the library, or you can write the path to your own image file.
Thanks for checking that up, I was updating the wrong line!
Indeed something is strange here even when I update the first ICON instance the icon is always the default one, jpg or png...
Let me check on that and I will come back to you.
It is actually a known bug. And it seems that it has been corrected for the forthcoming release Amesim 15 which will be released sometime in the middle of next year.
We are sorry for the inconvenience.
Another question reagrding this topic.
I habve now the new icon as xbm.
How can I change the icon of my lib?
I tried a workaround by creating a new category, but I don't see any simple way to move all the components in the new lib.
in you original library folder you will find an AMEIcons file.
It defines the path to the default icon (*.xbm) of the category and also to the file which stores the xbm of all the component icons (*.ico) of the library.
Usually the the xbm of the category is stored in the Icons folder and stored there as library.xbm
You can overwrite this file and it should do the trick.
what about the *.ico file?
EDIT: pointing to the right xbm file in the AMEIcons file fixed my issue
For completitude, the *.ico file glues together all the xbm of all the component icons of the library.