-
1
- #1
ITVictim
New member
- Oct 14, 2004
- 4
This is a method that I have determined to use your own custom icons on UDFs. I assume that a similar process is required for other custom icon addition. This approach works in Catia V5 R11, but should also work for succeeding versions...
CREATING THE ICONS:
* The standard UDF icons are in: <installation directory>/intel_a/resources/graphic/icons/normal
* The easiest way to create a new icon is to copy one of the standard icons, which are
16 colour bitmaps, 23 x 23 pixels. The transparent colour is Hue=160, Sat=0 and Lum=181.
* To be picked up in the standard icon browser (i.e. for UDF icons), the filename must begin
with "I_".
STORING ICONS:
There are two ways you can store the icons, in the standard directory, or in another specified
directory. This depends on how your IT infrastructure is set up. The former method is far simpler
and universal, but it does 'contaminate' the normal Catia installation.
Catia is told where to look for its graphics resources in the CATEnv files, the default of which
isstored in <installation directory>/CATEnv/CATIA_default.txt. This file lists among other things,
CATGraphicPath, which is set to point to the icons directory, among others.
METHOD 1:
* Just add your icons to the standard icon folder, and if they are in the correct format,
they will be picked up as normal. No adjusting of the CATEnv files are required, and all users
should have access to your icons.
METHOD 2:
* Create a 'mirror' directory structure <somewhere>/intel_a/resources/graphic/icons/normal.
* Store your icons in /normal.
* Copy coloreditor.rgb from <installation directory>/intel_a/resources/graphic/icons to
<somewhere>/intel_a/resources/graphic/icons (this means that you can see a proper representation of
the icon in the browser - it will still work without this).
* A new profile must be created. This profile can be created using the environment editor,
the executable is in <installation directory>\intel_a\code\bin\CATIAENV.exe.
* Create a new CATEnv directory <somewhere>/CATEnv.
* Use the Catia environment editor to create a new profile in <somewhere>/CATEnv. Keep all
the other paths the same, but add <somewhere>/intel_a/resources/graphic/icons to the CATGraphicPath
list (note you add /icons, not /icons/normal).
* When it asks whether you want to add an icon to the desktop, click 'yes'. This icon
effectively runs the Catia executable passing your new profile to it as an argument.
* When you start Catia from this new icon, your catia session will allow you to access your
icons. Unfortunately, however, if you start Catia any other way, these icons will disappear.
USING ICONS:
* On the UDF definition page, under the 'Icon' tab, select '...'. The order in which the icons appear is the order in which their directories are listed in CATGraphicPath (as there are 97 pages, it pays to put your directory at the front of the list).
The fun bit is drawing the icons!
Regards,
Mike
CREATING THE ICONS:
* The standard UDF icons are in: <installation directory>/intel_a/resources/graphic/icons/normal
* The easiest way to create a new icon is to copy one of the standard icons, which are
16 colour bitmaps, 23 x 23 pixels. The transparent colour is Hue=160, Sat=0 and Lum=181.
* To be picked up in the standard icon browser (i.e. for UDF icons), the filename must begin
with "I_".
STORING ICONS:
There are two ways you can store the icons, in the standard directory, or in another specified
directory. This depends on how your IT infrastructure is set up. The former method is far simpler
and universal, but it does 'contaminate' the normal Catia installation.
Catia is told where to look for its graphics resources in the CATEnv files, the default of which
isstored in <installation directory>/CATEnv/CATIA_default.txt. This file lists among other things,
CATGraphicPath, which is set to point to the icons directory, among others.
METHOD 1:
* Just add your icons to the standard icon folder, and if they are in the correct format,
they will be picked up as normal. No adjusting of the CATEnv files are required, and all users
should have access to your icons.
METHOD 2:
* Create a 'mirror' directory structure <somewhere>/intel_a/resources/graphic/icons/normal.
* Store your icons in /normal.
* Copy coloreditor.rgb from <installation directory>/intel_a/resources/graphic/icons to
<somewhere>/intel_a/resources/graphic/icons (this means that you can see a proper representation of
the icon in the browser - it will still work without this).
* A new profile must be created. This profile can be created using the environment editor,
the executable is in <installation directory>\intel_a\code\bin\CATIAENV.exe.
* Create a new CATEnv directory <somewhere>/CATEnv.
* Use the Catia environment editor to create a new profile in <somewhere>/CATEnv. Keep all
the other paths the same, but add <somewhere>/intel_a/resources/graphic/icons to the CATGraphicPath
list (note you add /icons, not /icons/normal).
* When it asks whether you want to add an icon to the desktop, click 'yes'. This icon
effectively runs the Catia executable passing your new profile to it as an argument.
* When you start Catia from this new icon, your catia session will allow you to access your
icons. Unfortunately, however, if you start Catia any other way, these icons will disappear.
USING ICONS:
* On the UDF definition page, under the 'Icon' tab, select '...'. The order in which the icons appear is the order in which their directories are listed in CATGraphicPath (as there are 97 pages, it pays to put your directory at the front of the list).
The fun bit is drawing the icons!
Regards,
Mike