Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIPLMObjectSelector
This interface provides access to UI for any PLM entity selection.
This Object Selector can load a PLM entity in session or select an entity already in session.
If the caller is a CATCommand and not a CATDialog, you should call:
CATCommand * pCmd = NULL;
HRESULT hr = pObjectSelector -> StartCommand(pCmd);
if (SUCCEEDED(hr) && CATSysCheckExpression(NULL != pCmd))
pCmd -> SetFather();
in order to let the caller receive the notifications.
All these methods must be called BEFORE the StartCommand method is launched.
Calling the method you activate it. The dialog box is natively visible.
All these methods can be called either after or before the StartCommand.
Attention, in order to receive the notifications, you must previously call the SetFather method. This call must be done before adding the callbacks using the AddAnalyseNotificationCB calls
CATIPLMObjectSelector * piPLMObjectSelector = ... CATCommand* pCmd = NULL; HRESULT Hr = piPLMObjectSelector->StartCommand(pCmd); if (SUCCEEDED(Hr) && pCmd) { pCmd->SetFather(this); // this is to let our command receive the notifications ... AddAnalyseNotificationCB ( pCmd, piPLMObjectSelector->GetSelectionEndedNotification(pOKNotif) ...,...); }
Once the End notification is received you can retrieve the PLM entity selected by the user in the output list displayed in the PLM Object Selector panel.
public virtual GetSelection( | oSelection) |
In order to manage correctly the PLM Entity in session, you have to set into a bag until you don't need it.
public virtual GetSelectionCancelledNotification( | opDiaCANCELNotification) |
public virtual GetSelectionEndedNotification( | opDiaOKNotification) |
If the PLM Entity is not already opened in the authoring session, it is done by this method.
public virtual GetVisibility( | oState) |
public virtual SetAttributesScope( | iListOfCkeAttributes) |
CATICkeParm::UserAccessMode WantedRights = CATICkeParm::ReadOnly; spCkeParm -> SetUserAccess (WantedRights);
public virtual SetDataOrigins( | const | iListOfDataOrigins) |
public virtual SetObjectScopeFromType( | ispIDataScope) |
public virtual SetTitle( | iTitle) |
public virtual SetVisibility( | iState) |
public virtual StartCommand( | opEventPublisher) |
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.