Machining

All Machining Workbenches

Managing Machining Processes instantiation traces

Implementing the CATIMfgMachiningProcessLog interface
Use Case

Abstract

This article discusses the CAAMaiMachiningProcessInstantiationLog use case and explains how to implement the CATIMfgMachiningProcessLog manufacturing interface.


What You Will Learn With This Use Case

This use case is intended to help you log the different steps of the Machining Process instantiation by implementing the CATIMfgMachiningProcessLog manufacturing interface. This involves the following:

[Top]

The CAAMaiMachiningProcessInstantiationLog Use Case

CAAMaiMachiningProcessInstantiationLog is a use case of the CAAManufacturingItf.edu framework in the CAAMaiMachiningProcessInstantiationLog.m module that illustrates ManufacturingInterfaces framework capabilities.

[Top]

What Does CAAMaiMachiningProcessInstantiationLog Do

CAAMaiMachiningProcessInstantiationLog illustrates an implementation of CATIMfgMachiningProcessLog interface for the Manufacturing Activities identified by the ManufacturingActivity type. This implementation enables the customer to trace the different step of the machining process instantiation:

And, for each manufacturing activity of the machining process:

An example of traces can be :

Instantiation information on Machining Process.1 maching process
Tooling Query for Drilling.1
<CONDITIONS>
TYPE:Drill
Nominal diameter=8mm
</CONDITIONS>
<SOLVING>
MFG_NOMINAL_DIAM==8mm
</SOLVING>
<RESULTS>
Drill D8
</RESULTS>
End of Tooling Query for Drilling.1

Formulas processing for Drilling.1
<CONDITIONS>
Breakthrough=2mm
</CONDITIONS>
<RESULTS>
Process\Drilling.1\MfgParameter.1\Breakthrough=2mm
</RESULTS>
End of formulas processing for Drilling.1

Checking of operation availabality for Drilling.1
<CONDITIONS>
Drilling.Breakthrough<=MyCompareF(Part Operation,1,2,3)
</CONDITIONS>
<SOLVING>
Process\Drilling.1\MfgParameter.1\Breakthrough<=3mm
</SOLVING>
<RESULTS>
TRUE
</RESULTS>
End of checking of operation availabality for Drilling.1

[Top]

How to Use CAAMaiMachiningProcessInstantiationLog

To use CAAMaiMachiningProcessInstantiationLog, you will need to:

[Top]

Where to Find the CAAMaiMachiningProcessInstantiationLog Code

The CAAMaiMachiningProcessInstantiationLog use case is made of a class named CAAMaiMachiningProcessLog located in the CAAMaiMachiningProcessInstantiationLog.m module of the CAAManufacturingItf.edu framework:

Windows InstallRootDirectory\CAADoc\CAAManufacturingItf.edu\CAAMaiMachiningProcessInstantiationLog.m
Unix InstallRootDirectory/CAADoc/CAAManufacturingItf.edu/CAAMaiMachiningProcessInstantiationLog.m

where InstallRootDirectory is the directory where the CAA CD-ROM is installed.

[Top]

Step-by-Step

There are two logical steps in CAAMaiMachiningProcessInstantiationLog:

  1. Implementing the CATIMfgMachiningProcessLog Interface for ManufacturingActivity Types
  2. Applying the "Generic Holes" Machining Process on a design hole

We now comment each of those sections by looking at the code.

[Top]

Implementing the CATIMfgMachiningProcessLog Interface for ManufacturingActivity Type

The CAAMaiMachiningProcessLog.cpp file illustrates how to trace the information built when instantiating a machining process

The Trace method is called at the different steps of the instantiation and receives a list of CATUnicodeString with the integer type of the step: 1 for check, 2 for tooling queries, 3 for formulas

Update the interface dictionary, that is a file named, for example in this case, CAAManufacturingItf.edu.dico, whose directory's pathname is concatenated at run time in the CATDictionaryPath environment variable, and containing the following declaration to state that the ManufacturingActivity feature implements the CATIMfgMachiningProcessLog interface, and whose code is located in the libCAAMaiMachiningProcessInstantiationLog shared library or DLL. Pay attention to remove the comment (#CAA#) in the supplied dictionary.

ManufacturingActivity CATIMfgMachiningProcessLog libCAAMaiMachiningProcessInstantiationLog

The CAAManufacturingItf.edu.dico file is located in:

Windows InstallRootDirectory\CAADoc\CAAManufacturingItf.edu\CNext\code\dictionary\
Unix InstallRootDirectory/CAADoc/CAAManufacturingItf.edu/Cnext/code/dictionary/

[Top]

Applying the "Generic Holes" Machining Process

Through the "Standard machining processes" toolbar,  instantiate the "Axial Process for Design Holes" machining process on any design hole (counterbored, countersunk, tappered) and look at the output traces. Note that this  command is overloaded on "Standard Drilling" one.

[Top]

Advise

The query to the CATIMfgMachiningProcessLog interface is systematically done on the machining process when instantiating a machining process. It means that you can identify all the manufacturing activities traces dedicated to a given machining process. For example, the implementation of the Machining Process can open a file that will be filled through the Trace method for the Manufacturing Activities

[Top]

 


In Short

This article provides an example on how to implement and use the CATIMfgMachiningProcessLog interface dedicated to give a feedback at the different steps of the instantiation of a machining process.

[Top]


References

[1] Building and Launching a CAA V5 Use Case
[Top]

History

Version: 1 [January 2003] Document created
[Top]

Copyright © 2004, Dassault Systèmes. All rights reserved.