Bu CATIA API fonksiyonu ne işe yarar?
Fonksiyon: CAAMaiMachiningPatternCreationSource.CATScript
Cevap:
*****************************************************************************
*
*		Description:
*			Sample of a VB Script macro which retrieves a Design pattern
*                and Design Holes and which creates a machining pattern linked
*			to these Features.
*
*      Related Resources:
*			Plate-VBSample01.CATPart
*      Use:
*			1- Open "Plate-VBSample01.CATPart"
*			2- Go into workbench "Prismatic Manufacturing Programmer"
*			3- Run this macro
*
*                           Created by Dassault Systemes
*
*****************************************************************************
*******************************************************************************************
*
* Creating the machining pattern
*
*******************************************************************************************
--------------------------------------
 Retrieve the active CATProcess document
--------------------------------------
--------------------------------------
 Retrieve the current setup
--------------------------------------
*** Retrieve current Process Root
*** Retrieve current Product linked to the current setup
--------------------------------------
 Retrieve the Manufacturing View
--------------------------------------
--------------------------------------
 Create a Machining Pattern
--------------------------------------
*******************************************************************************************
*
* Retrieving the design pattern and the holes
*
*******************************************************************************************
--------------------------------------
 Retrieve the Design Pattern and the Design Holes
--------------------------------------
*** Retrieve design pattern
*** Retrieve design holes
*******************************************************************************************
*
* Assigning the Design Features to the Machining Pattern
*
*******************************************************************************************
--------------------------------------
 Assign these Design Features to the Machining Pattern
--------------------------------------