Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: DMUInfColorTable20.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2002
 ***********************************************************************
   Purpose     : Change the color of products using a color randomly selected in a table.
   Assumptions : A CATProduct document should be active.
   Author      :
   Languages   : VBScript
   Locales     : English
   CATIA Level : V5R6
 ***********************************************************************
 Number of colors in the table minus one
 ***********************************************************************

 Purpose:  Add a product in a group.

 Inputs :  oNode    Product     the product
           oGroup   Product     the array of group
           iIndex   Integer     the index of the product

 ***********************************************************************
 Add the leaf to the group
 Prepare the next index
 Treat the subcomponents
 ***********************************************************************

 Purpose:  Main.

 ***********************************************************************
 Build the color table (oColor(i,0) = Red, oColor(i,1) = Green, oColor(i,2) = Blue)
Red
Dark Red
Light Red
Fushia
Green
Dark Green
Light Green
Green-blue
Blue
Dark Blue
Light Blue
Yellow
Dark Yellow
Yellow-orange
Brown
Light Brown
Pink
Mauve
Grey
White
 Retrieve the root product
 Retrieve the selection object
 Build the groups of products which will share the same color
 Build the groups by exploring recursively all nodes in the product structure
 Set the colors