AfrInterfaces Interface CATIWorkbenchInitialization
Usage: you can freely reimplement this interface.
interface CATIWorkbenchInitialization
Interface to do some initializations before starting a workbench.
Role:
This interface is called whenever the given workbench becomes the current one.
You implement it using an extension of a late type made of the workbench identifier
suffixed by _init, such as MyWorkbench_init for
the MyWorkbench workbench.
This interface contains a method called when the workbench becomes the current one, and a method
called when this workbench is exited.
Suppose you launch the workbench A and after the B. The sequence of calls is:
- Launch A
- workbenchA Init is called
You are in the workbench A
- Launch B
- workbenchA Dispose is called
- workbenchB Init is called
You are in the workbench B
Caution
Any command of a workbench is accessible from any other workbench of
the same workshop.
You have two means to launch a command which is initially defined in an
another workbench:
- Thanks to the Power Input
- Thanks to the Tools/Customize command, you can drag/drop a command in
any toolbar or menu
So a command must not expect that the method Init of its
original workbench has been executed when the command is launched.
This interface must thus be used to do visualization effets, such as create
a viewer, change the visualization mode, but never create data in the model.
Method Index
- o
Dispose()
- Method called when the workbench is exited.
- o
Init()
- Method called when the workbench becomes the current one.
Methods
o Dispose
-
Method called when the workbench is exited.
o Init
-
Method called when the workbench becomes the current one.
This object is included in the file: CATIWorkbenchInitialization.h
If needed, your Imakefile.mk should include the module: CATAfrItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.