3D PLM PPR Hub Open Gateway

File XPDM (PX1)

Creating an Interactive Command to Save a Complete Session

How to use CATxPDMSessionServices

Use Case

Abstract

This article shows how to create an interactive command to save a complete session in a given directory.


What You Will Learn With This Use Case

In this use case you will mainly earn how to use the SaveSessionToDirectory method of the CATxPDMSessionServices class.

[Top]

The CAAxPDMToolbar Use Case

CAAxPDMToolbar is a use case of the CAAxPDMInterfaces.edu framework that illustrates CATxPDMInterfaces framework capabilities. Be careful, such as all use cases illustrating the CATxPDMInterfaces framework, the current one requires a PX1 licence.

[Top]

What Does CAAxPDMToolbar Do

The PX1 Toolbar containing several command, you have to select the Save one.

                             Fig.1 The Save Session To Directory Dialog Box

All documents in session are displayed in the dialog box.

If you select a line, complete message is displayed on bottom of panel.
If you double-clic on a line, document with error is automatically open in its editor.

[Top]

How to Launch CAAxPDMToolbar

To launch CAAxPDMToolbar, you will need to set up the build time environment, then compile CAAxPDMToolbar along with its prerequisites, set up the run time environment, and then execute the use case [1]. To launch it, refer to the What Does CAAxPDMToolbar Do section.

[Top]

Where to Find the CAAxPDMToolbar Code

The CAAxPDMToolbar use case is made of three files,

this file contains the addin to create the toolbar.

The first class is the state command launched when the end user push Save Session to Directory command. The second one defines the dialog box [Fig.1] launched by the CAAxPDMPackSessionCmd command.

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

[Top]

Step-by-Step

Save of session is performed throught CATxPDMServices::SaveSessionToDirectory API.

Check of design rules is performed throught CATxPDMServices::CheckDesignRules API.

Preview is computed through CATIxPDMItem::GeneratePreview API.

[Top]


In Short

This sample show you :

[Top]


References

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

History

Version: 1 [Feb 2006] Document created
[Top]

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