Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: DMUpstcutpastekeepabsoluteposition.CATscript
Cevap:
COPYRIGHT DASSAULT SYSTEMES 2001
 ***********************************************************************
   Purpose     : Copy and paste products while keeping their absolute position.
   Assumptions : Products to copy/paste have to be selected.
   Author      :
   Languages   : VBScript
   Locales     : English
   CATIA Level : V5R7
 ***********************************************************************
 ***********************************************************************

 Purpose:  Define the product of two matrix.

 Inputs :  matrix1  Array       array corresponding to the first matrix
           matrix2  Array       array corresponding to the second matrix

 Outputs:  res      Array       array corresponding to the product

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

 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:  Print the content of a matrix.

 Inputs :  sName    String      name of the matrix
           matrix   Array       array corresponding to the matrix

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

 Purpose:  Retrieve the absolute position of a product.

 Inputs :  oProduct Product     the product
           oRoot    Product     the root product

 Outputs:  position Array       array corresponding to position of the product

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

 Purpose:  Main.

 ***********************************************************************
 Retrieve the Groups collection
 Create a group with selected products
 Acquire the component to paste onto
 Retrieve the product to paste onto (i.e. the father)
 Compute the inverse of the father position
 Retrieve the next product to be copied
 Compute the absolute position of the product
 Compute the relative position of the product with respect to father
 Cut/Paste the product
 Move the product to get the right position
 Clear