Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAAsmCstOnPublish.CATScript
Cevap:
COPYRIGTH DASSAULT SYSTEMES 2001
 ***********************************************************************
   Purpose:      Creates constraints between assembly Parts using Publications
   Assumtions:   Looks for CstOnProduct.CATProduct in the DocView
   Author:
   Languages:    VBScript
   Locales:      English
   CATIA Level:  V5R6
 ***********************************************************************
 -----------------------------------------------------------
 Optional: allows to find the sample wherever it's installed
 -----------------------------------------------------------
 Open the Product document

 --------------------------
 Get the different products
 --------------------------
 --------------------------------------
 Declare variables to handle publications
 --------------------------------------
 --------------------------------------
 Get the Constraints collection
 --------------------------------------
 --------------------------------------
 Create offset constraint between plate
 top face and screws heads bottom faces
 --------------------------------------
  ---> Plate\Top Screw1\HeadBottom
  ---> Plate\Top Screw2\HeadBottom
 --------------------------------------------
 Create offset constraint between plate
 holes positioning points and screws axis
 --------------------------------------------
  ---> Plate\Hole1 Screw1\Axis
  ---> Plate\Hole2 Screw2\Axis
 --------------------------------------
 Update the Product ..
 --------------------------------------
 --------------------------------------
 Replace the screw by another one: constraints on
 published elements are autoatically reconnected ...
 --------------------------------------
 --------------------------------------
 Update the Product with the new Parts
 --------------------------------------