Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAADriInstantiateOuterDitto.CATScript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2003
 ***********************************************************************
   Purpose:      This macro allows you to instantiate a ditto in
                 a view from a ditto in another document
   Author:
   Languages:   VBScript
   Locales:     English
   CATIA Level: V5R11
 ***********************************************************************
 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
 Open the drawing document containing the existing ditto
 Retrieve the sheet containing the ditto to be copied
 Retrieve the view containing the ditto to be copied
 Retrieve the ditto
 Create an object of selection for the source document
 Clear the selection
 Add the ditto to be duplicated in the selection
 Copy the view
 Clear the selection
 Open the drawing document where the ditto will be instantiated
 Retrieve the sheet where the ditto will be instantiated
 Retrieve the view where the ditto will be instantiated
 Indicate the ditto location
 Create an object of selection for the target document
 Clear the selection
 Add the view in the selection, where the ditto will be instantiated
 Paste the clipboard
 Clear the selection
 Retrieve the drawing components collection of the target drawing view
 Retrieve the ditto and define its location
 Retrieve the modifiable text of the ditto
 Modify the modifiable text value
 Clear the variables