×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Adding Custom Icons to UDFs

Adding Custom Icons to UDFs

Adding Custom Icons to UDFs

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

eBook - The Future of Product Development is Here
Looking to make the design and manufacturing of your products more agile? For engineering and manufacturing organizations, the need for digital transformation of product development processes just became more urgent than ever so we wanted to share an eBook that will help you build a practical roadmap for your journey. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close