Interactive CATIA SMARTEAM |
Saving Documents in SmarTeam |
![]() |
This macro show you how to use the CAI automation objects to perform SMARTEAM life-cycle operations on CATIA V5 documents. It connects to SMARTEAM, create new CATIA V5 documents, save them in SMARTEAM then put them in SMARTEAM vault. |
||||||||||
![]() |
CAAStiUseCase1 is launched in CATIA [1]. No open document is needed. CAAStiUseCase1.CATScript is located in the CAAScdStiUseCases module. Execute macro (Windows only).
|
||||||||||
![]() |
CAAStiUseCase1 includes ten steps:
Retrieving CAIEngine object
The entry point of the CATIA-SMARTEAM Integration, is the "SMARTEAM Integration Engine".
Define UI mode
CATIA-SMARTEAM Integration can operate either in an interactive way requiring user interactions
(like validating various SMARTEAM dialogs) or in an non-interactive way.
Connect to SMARTEAM
Here we check if CATIA is already connected to SMARTEAM. If CATIA is not already connect, then we connect with user "joe" and no password. Save a CATPart document into SMARTEAM
A new CATPart document is created and saved in SMARTEAM. As we decided not to have any user interaction, the document will be saved with default values (default project and/or folder) Retrieve SMARTEAM identification of the saved CATPart document
As soon as the CATPart document is saved into SMARTEAM, it gets a SMARTEAM unique identification. Here we retrieve this identification to make sure we will be able to access the document later in the execution of the macro. Perform Check-In operation on the CATPart document
We run the SMARTEAM life-cycle "Check-In" operation on the CATPart document. The document is automatically moved to the SMARTEAM "Checked-In" vault and closed from the CATIA session. Retrieve Checked-In CATPart document and insert it in a new CATProduct document
Here we create a new CATProduct document. Then, based on SMARTEAM unique identification of the already saved CATPart document, we can retrieve it and get a read-only copy in the user local work area. This CATPart document is then inserted in the CATProduct document. Perform save and Release operation on the CATProduct document
Here we saved the CATProduct document in SMARTEAM. The link from the CATProduct document to the CATPart will also be saved in SMARTEAM.
Reset connection status
Here we disconnect from SMARTEAM (but only in case we had to connect at the beginning of the macro. Reset UI mode as it was before
Here we reset the UseGraphicalUI property as it was at the beginning of the macro. End of the macro. |
[Top]
This use case has shown how to use CATIA SMARTEAM Integration.
[Top]
[1] | Replaying a Macro |
[Top] |
Copyright © 2002, Dassault Systèmes. All rights reserved.