Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: DMUSpaSectionFlattener.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2002
 ***********************************************************************
   Purpose     : Create a CATProduct containing all section curves of the current product in the same plane.
   Assumptions : A CATProduct document should be active having some sections.
                 An environment variable named "EXPORT_DIR" must be set (ex: export EXPORT_DIR=/tmp/).
                 It refers the directory where models will be stored.
   Author      :
   Languages   : VBScript
   Locales     : English
   CATIA Level : V5R8SP1
 ***********************************************************************
 ***********************************************************************

 Purpose:  Define the inverse of a position matrix.

 Inputs :  matrix   Array       array corresponding to the matrix

 Outputs:  inverse  Array       array corresponding to the inverse of the matrix

 ***********************************************************************
 ***********************************************************************

 Purpose:  Main.

 ***********************************************************************
 Retrieve the Sections collection
 Retrieve the number of Sections
 Initialize file management
 Initialize section management
 Position matrix of a section
 Inverse of position matrix
 Array of all section position matrices
 Loop on all sections
 Treat only if section is not empty
 Export the Section into a V4 model
 Store the position of the section
 Create a new CATProduct to receive section curves
 Move the components to flatten the section
 Hide skeletton geometry
 Modify the viewpoint to 'top view