Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Change Icon Library via *.display file

Hello,

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: "How do I organize my own category in sub-groups using a .display file?"

 

So I created a .display file

 

For example in my Lib I only have 3 SC,

 

<!DOCTYPE CATEGORY_DISPLAY>
<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" />
 
</CATEGORY>
</CATEGORY_DISPLAY>

 

 

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?

 

Thank you

Maxime

11 REPLIES

Re: Change Icon Library via *.display file

[ Edited ]

Hi Max,

 

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".

 

 

 

Re: Change Icon Library via *.display file

Hello Emmanuel,

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:
 
<CATEGORY_DISPLAY DOC_VERSION="1" AME_VERSION="5.0" >
 
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.

 

 

 
Or do you mean that the problem is only the png format?

 

Re: Change Icon Library via *.display 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.

Solution
Solution
Accepted by topic author mAx
‎10-23-2015 01:10 AM

Re: Change Icon Library via *.display file

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.

Re: Change Icon Library via *.display file

ok thanks for the info

Re: Change Icon Library via *.display file

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.

Solution
Solution
Accepted by topic author mAx
‎10-23-2015 04:38 AM

Re: Change Icon Library via *.display file

Hi Max,

 

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.

 

 

Re: Change Icon Library via *.display file

[ Edited ]

what about the *.ico file?

 

EDIT: pointing to the right xbm file in the AMEIcons file fixed my issue

Thank you!

Re: Change Icon Library via *.display file

Great.

 

For completitude, the *.ico file glues together all the xbm of all the component icons of the library.