Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAADriDimension.CATScript
Cevap:
---------------------------------------------------------------------------
COPYRIGHT DASSAULT SYSTEMES 2002
 ****************************************************************************

 Purpose:       To analyze a subset of dimensions pointed by text leaders
                in the active drafting document.
                That macro checks all dimensions pointed by text leader elements.
                If dimensions have a wrong display (tolerances or wrong frame)
                text leader object is highlighted.

 Assumptions:   A Drafting document should be active

 Author:
 Languages:     VBScript
 Version:       V5R10
 Locales:       English
 CATIA Level: V5R10

 ****************************************************************************
---------------------------------------------------------------------------
 Set the CATIA popup file alerts to False
 It prevents to stop the macro at each alert during its execution
 Optional: allows to find the sample wherever it's installed
---------------------------------------------------------------------------
1/ Read active CATDrawing Document
---------------------------------------------------------------------------
 Get Selection Object and clear it
 Variables declaration
---------------------------------------------------------------------------
2/ Scan all the sheet of the current drawing (Included detail sheet)
---------------------------------------------------------------------------
Read the current sheet to restore it at the end of the macro
 Active Currentsheet
 Clear the selection
Read the current view to restore it at the end of the macro
---------------------------------------------------------------------------
3/ Scan all the view of the current sheet
---------------------------------------------------------------------------
Active the current view
---------------------------------------------------------------------------
4/ Scan all the texts of the current view
---------------------------------------------------------------------------
---------------------------------------------------------------------------
5/ Scan all the leaders of the current text
---------------------------------------------------------------------------
 Manage error on HeadTarget method when
 no element is pointed by the text leader.
 Get object pointed on the leader
------------------------------------------------------------------------------
6/ Check tolerances and the frame type of the dimension pointed by text leader
------------------------------------------------------------------------------
 A dimension is pointed by text leader
 Get the dimension object
 Read dimension tolerances
 Read dimension frame type
---------------------------------------------------------------------------
7/ Change the visualization of the text leader linked to that dimension
---------------------------------------------------------------------------
 If dimension does not respect the criteria text leader object is highlighted
Restore the view
Restore the Drawing Document sheet