AfrInterfaces Interface CATIAfrActivateWorkbench

Usage: you can freely reimplement this interface.


interface CATIAfrActivateWorkbench

Interface to choose the initial workbench when UI activating an object.
Role: When an object is UI activated, its workshop is displayed like one of its workbench if it has one of them. Implementing this interface allows you to overwrite the default choice of the initial workbench for a workshop, i.e the last used workbench for this workshop.
This interface must be implemented on ui-activable object ( as CATIUIActivate ). Here are some ui-activable object types:


Method Index


o GetInitialWorkbench()
Method called when UI activating an object.

Methods


o GetInitialWorkbench
public virtual CATString & GetInitialWorkbench()= 0
Method called when UI activating an object.
Role: This method is called when the user ui-activates an object which edits itself in a workshop. This method should return a workbench name useable in this workshop. If this workbench can not be activated (not a workbench name, not a workbench of the workshop, workbench not licensed), the default mechanism will be used to choose the workbench.
Returns:
The name of the workbench to activate.

This object is included in the file: CATIAfrActivateWorkbench.h
If needed, your Imakefile.mk should include the module: CATAfrItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.