Lifecycle Applications |
Engineering Change Management |
The ECO Manager InterfaceCreating and deleting ECOs |
Use Case |
AbstractThis article shows how to use the ENOVIBOEcoManager interface of the ENOVInterfaces framework to create and delete Engineering Change Orders in the Change Management domain. |
This use case is intended to show you how to create and delete Engineering Change Orders in the Change Management domain. ECOs are used to control and direct the modification or development of a product. The ENOVInterfaces framework contains the ENOVIBOEcoManager interface which allows you to directly create and delete the ECO which may then be manipulated as desired.
[Top]
CAAEviEcoManager is a use case of the CAAENOVInterfaces.edu framework that illustrates the creation and deletion of Engineering Change Orders.
[Top]
CAAEviEcoManager begins by opening a VPM session and creating a login a session. Then the ECO Manager is retrieved. The necessary parameters are created and the manager is directly used to create and delete the ECO.
The ENOVInterfaces interface/methods shown are as follows:
[Top]
To launch CAAEviEcoManager, you will need to set up the build time environment, then compile CAAEviEcoManager.cpp along with its prerequisites, set up the run time environment, and then execute the use case. The required interfaces can be found in the ENOVInterfaces, VPMInterfaces, VPMPersistency, and System frameworks. From the directory where the executable file is stored, enter"CAAEviEcoManager" to execute the program. [1].
[Top]
The CAAEviEcoManager use case is made of a single file located in the CAAEviEcoManager.m module of the CAAENOVInterfaces.edu framework:
Windows | InstallRootDirectory\CAAENOVInterfaces.edu\CAAEviEcoManager.m\ |
Unix | InstallRootDirectory/CAAENOVInterfaces.edu/CAAEviEcoManager.m/ |
where InstallRootDirectory
is the directory where the CAA CD-ROM
is installed.
[Top]
For demonstration purposes, the code from the CAAEviEcoManager use case is shown here. There are three logical steps in the CAAEviEcoManager use case:
[Top]
#include "ENOVIBOEcoManager.h" |
This include statement gives access to the interface demonstrated here.
//--- Get ENOVIBOEcoManager ENOVIBOEcoManager_var spEcoMgr = GetBOManager(); if ( spEcoMgr == NULL_var ) { cout << "ERROR in getting Eco Manager." << endl << flush; VPMSession::CloseSession(); return 2; } cout << "Got EcoManager successfully." << endl << flush; |
[Top]
#include "ENOVIBOEcoManager.h" #include "CATIEnovCMEco.h" #include "CATUnicodeString.h" |
These include statements are required for the following operations.
//--- Create an Engineering Change Order CATIEnovCMEco_var Eco = NULL_var; CATUnicodeString EcoType("ECO"); CATUnicodeString EcoVersion("1"); CATUnicodeString EcoName("MyEco"); CATUnicodeString EcoPriority("Routine"); CATUnicodeString EcoTypeCode("Release"); CATUnicodeString EcoInitialAbstract("This is a CAA ECO."); rc = spEcoMgr->CreateNewEco( EcoType, EcoVersion, Eco, EcoName, EcoPriority, EcoTypeCode, EcoInitialAbstract ); if ( !SUCCEEDED(rc) || Eco==NULL_var ) { cout << "ERROR in creating ECO." << endl << flush; VPMSession::CloseSession(); return 3; } cout << "Created new Engineering Change Order successfully." << endl << flush; |
[Top]
#include "ENOVIBOEcoManager.h" #include "CATIEnovCMEco.h" |
These include statements are required for the following operations.
//--- Delete Engineering Change Order boolean delActions = FALSE; rc = spEcoMgr->RemoveEco(Eco, delActions); if ( !SUCCEEDED(rc)) { cout << "ERROR in deleting ECO." << endl << flush; VPMSession::CloseSession(); return 4; } cout << "Deleted Engineering Change Order successfully." << endl << flush; |
[Top]
Use the ENOVIBOEcoManager interface to create and delete ECOs. You can retrieve the ECO Manager with GetBOManager().
[Top]
[1] | Building and Launching a CAA V5 Use Case |
[Top] |
Version: 1 [Feb 2002] | Document created |
[Top] |
Copyright © 1994-2002, Dassault Systèmes. All rights reserved.