Library | File

Class pfcSessionActionListener

# include <pfcSession.h>

class pfcSessionActionListener
 : public virtual pfcActionListener
{
    xaideclare(pfcSessionActionListener)
    ...
};



Description

This class specifies an action listener to notify you of session operations.
Manual References:
Action Listeners: Creo Object TOOLKIT C++ Action Listeners



Method Summary

voidOnAfterDirectoryChange (xrstring Path)
Provides a notification function called after the current directory has been changed.
voidOnAfterModelDisplay ()
Provides a notification function called after displaying a model.
voidOnAfterModelPurge (pfcModelDescriptor_ptr Desrc)
This is the listener method called after purging a model.
voidOnAfterWindowChange (optional pfcWindow_ptr NewWindow)
Provides a listener method called after changing a window in Creo Parametric.
voidOnBeforeModelCopy (pfcDescriptorContainer2_ptr Container)
This is the listener method called before copying a model.
voidOnBeforeModelDelete ()
This is the listener method called before deleting a model.
voidOnBeforeModelErase ()
This is the stener method called before erasing a model.
voidOnBeforeModelPurge (pfcDescriptorContainer_ptr Container)
This is the listener method called before purging a model.
voidOnBeforeModelRename (pfcDescriptorContainer2_ptr Container)
This is the listener method called before renaming a model.
voidOnBeforeModelSave (pfcDescriptorContainer_ptr Container)
This is the listener method called before saving a model.



Method Detail

voidOnAfterDirectoryChange (xrstring Path)

Provides a notification function called after the current directory has been changed.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners
Parameters:
Path
The new path to the directory that was changed
Returns:



voidOnAfterWindowChange (optional pfcWindow_ptr NewWindow)

Provides a listener method called after changing a window in Creo Parametric.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners
Parameters:
NewWindow
The new window object.
Returns:



voidOnAfterModelDisplay ()

Provides a notification function called after displaying a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners
Returns:



voidOnBeforeModelErase ()

This is the stener method called before erasing a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Returns:



voidOnBeforeModelDelete ()

This is the listener method called before deleting a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Returns:



voidOnBeforeModelRename (pfcDescriptorContainer2_ptr Container)

This is the listener method called before renaming a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Container
Two model descriptors. Your application can fill in the descriptors, forcing the Creo Parametric interface to follow your naming conventions.
Returns:



voidOnBeforeModelSave (pfcDescriptorContainer_ptr Container)

This is the listener method called before saving a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners, Action Listeners: Model Level Action listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Container
User should initialize this object with the model name to be saved in callback. If it is not initialized, the system prompts for the model name interactively.
Returns:



voidOnBeforeModelPurge (pfcDescriptorContainer_ptr Container)

This is the listener method called before purging a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Container
A model descriptor.
Returns:



voidOnBeforeModelCopy (pfcDescriptorContainer2_ptr Container)

This is the listener method called before copying a model.
Manual References:
Action Listeners: Session Level Action Listeners, Action Listeners: Session Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Container
Two model descriptors; your listener method may fill in the descriptors. This will force the Creo Parametric UI to use yournaming rules for new models.
Returns:



voidOnAfterModelPurge (pfcModelDescriptor_ptr Desrc)

This is the listener method called after purging a model.
Manual References:
Action Listeners: Session Level Action Listeners
Parameters:
Desrc
 
Returns: