Library | File

Class pfcFeatureActionListener

# include <pfcFeature.h>

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



Description

This class defines an action listener for features.
Manual References:
Action Listeners: Creo Object TOOLKIT C++ Action Listeners, Action Listeners: Feature Level Action Listeners



Method Summary

voidOnAfterCopy (pfcFeature_ptr FromFeat, pfcFeature_ptr ToFeat, pfcFeatureCopyType Type)
This is the listener method called after a successful feature copy.
voidOnAfterRegen (pfcFeature_ptr Feat)
This is the notification function called after a feature has been regenerated.
voidOnAfterSuppress (pfcFeature_ptr Feat)
This is the notification function called after a feature has been suppressed from a solid.
voidOnBeforeDelete (pfcFeature_ptr Feat)
This is the action listener called before deleting a feature.
voidOnBeforeParameterCreate (pfcFeature_ptr Owner, xrstring Name, pfcParamValue_ptr Value)
This is the notification function called before a parameter is created. To abort parameter creation throw exception pfcXCancelProEAction.
voidOnBeforeParameterDelete (pfcParameter_ptr Param)
This is the listener method called before deleting a parameter. To abort parameter delete operation throw exception pfcXCancelProEAction.
voidOnBeforeParameterModify (pfcParameter_ptr Param, pfcParamValue_ptr Value)
This is the notification function called before a parameter is modified. To abort parameter modification throw exception pfcXCancelProEAction.
voidOnBeforeRedefine (pfcFeature_ptr Feat)
This is the notification function called before a feature is redefined.
voidOnBeforeRegen (pfcFeature_ptr Feat)
This is the notification function called before a feature is regenerated.
voidOnBeforeSuppress (pfcFeature_ptr Feat)
This is the notification function called before a feature is suppressed.
voidOnRegenFailure (pfcFeature_ptr Feat)
This is the notification function called when a regeneration fails.



Method Detail

voidOnBeforeDelete (pfcFeature_ptr Feat)

This is the action listener called before deleting a feature.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Feat
The feature about to be deleted
Returns:



voidOnBeforeSuppress (pfcFeature_ptr Feat)

This is the notification function called before a feature is suppressed.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Feat
The feature to be suppressed
Returns:



voidOnAfterSuppress (pfcFeature_ptr Feat)

This is the notification function called after a feature has been suppressed from a solid.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners
Parameters:
Feat
The feature that was suppressed
Returns:



voidOnBeforeRegen (pfcFeature_ptr Feat)

This is the notification function called before a feature is regenerated.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners
Parameters:
Feat
The feature to be regenerated
Returns:



voidOnAfterRegen (pfcFeature_ptr Feat)

This is the notification function called after a feature has been regenerated.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners
Parameters:
Feat
The feature that was just regenerated
Returns:



voidOnRegenFailure (pfcFeature_ptr Feat)

This is the notification function called when a regeneration fails.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners
Parameters:
Feat
The feature whose regeneration failed
Returns:



voidOnBeforeRedefine (pfcFeature_ptr Feat)

This is the notification function called before a feature is redefined.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Feat
The feature to be redefined
Returns:



voidOnAfterCopy (pfcFeature_ptr FromFeat, pfcFeature_ptr ToFeat, pfcFeatureCopyType Type)

This is the listener method called after a successful feature copy.
Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners
Parameters:
FromFeat
Feature to be copied
ToFeat
Target for copied feature
Type
Type of feature copy, for example, using the same references, flipped to a miror image, and so on.
Returns:



voidOnBeforeParameterCreate (pfcFeature_ptr Owner, xrstring Name, pfcParamValue_ptr Value)

This is the notification function called before a parameter is created. To abort parameter creation throw exception pfcXCancelProEAction.

Manual References:
Action Listeners: Cancelling an ActionListener Operation
Parameters:
Owner
Owner feature of parameter.
Name
Name of the parameter.
Value
Value of the parameter.
Returns:



voidOnBeforeParameterModify (pfcParameter_ptr Param, pfcParamValue_ptr Value)

This is the notification function called before a parameter is modified. To abort parameter modification throw exception pfcXCancelProEAction.

Parameters:
Param
Name of the parameter.
Value
Value of the parameter.
Returns:



voidOnBeforeParameterDelete (pfcParameter_ptr Param)

This is the listener method called before deleting a parameter. To abort parameter delete operation throw exception pfcXCancelProEAction.

Manual References:
Action Listeners: Feature Level Action Listeners, Action Listeners: Feature Level Action Listeners, Action Listeners: Cancelling an ActionListener Operation
Parameters:
Param
Parameter to be deleted
Returns: