Library | File

Class pfcSolidActionListener

# include <pfcSolid.h>

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



Description

This class defines an action listener that notifies you when operations on solids occur.

You can receive notification before and after the following events:
Manual References:
Action Listeners: Creo Object TOOLKIT C++ Action Listeners, Overview of Creo Object TOOLKIT C++: Action Listener Classes, Overview of Creo Object TOOLKIT C++: Action Listener Classes



Method Summary

voidOnAfterFeatureCreate (pfcSolid_ptr Sld, pfcFeature_ptr Feat)
Provides an action listener called after a feature is created.
voidOnAfterFeatureDelete (pfcSolid_ptr Sld, xint FeatId)
Provides an action listener called after a feature is deleted.
voidOnAfterRegen (pfcSolid_ptr Sld, optional pfcFeature_ptr StartFeature, xbool WasSuccessful)
Provides a notification function called after regenerating a solid.
voidOnAfterUnitConvert (pfcSolid_ptr Sld, xbool ConvertNumbers)
Provides an action listener called after the unit conversion of a solid.
voidOnBeforeFeatureCreate (pfcSolid_ptr Sld, xint FeatId)
Provides a callback function called before creating a feature.
voidOnBeforeRegen (pfcSolid_ptr Sld, optional pfcFeature_ptr StartFeature)
Provides a notification function called before the solid is regenerated.
voidOnBeforeUnitConvert (pfcSolid_ptr Sld, xbool ConvertNumbers)
Provides an action listener called before the unit conversion of a solid.



Method Detail

voidOnBeforeRegen (pfcSolid_ptr Sld, optional pfcFeature_ptr StartFeature)

Provides a notification function called before the solid is regenerated.
Manual References:
Action Listeners: Solid Level Action Listeners, Action Listeners: Solid Level Action Listeners
Parameters:
Sld
The solid to be regenerated.
StartFeature
The starting feature of the regeneration.
Returns:



voidOnAfterRegen (pfcSolid_ptr Sld, optional pfcFeature_ptr StartFeature, xbool WasSuccessful)

Provides a notification function called after regenerating a solid.
Manual References:
Action Listeners: Solid Level Action Listeners, Action Listeners: Solid Level Action Listeners
Parameters:
Sld
The solid that was regenerated.
StartFeature
The starting feature of the regeneration.
WasSuccessful
This is true if the solid regenerated successfully.Otherwise, this is false.
Returns:



voidOnBeforeUnitConvert (pfcSolid_ptr Sld, xbool ConvertNumbers)

Provides an action listener called before the unit conversion of a solid.
Manual References:
Action Listeners: Solid Level Action Listeners, Action Listeners: Solid Level Action Listeners, Overview of Creo Object TOOLKIT C++: Action Listener Classes
Parameters:
Sld
The solid to be converted.
ConvertNumbers
This is true if the dimensions are converted. This is false if the dimensions are reinterpreted.
Returns:



voidOnAfterUnitConvert (pfcSolid_ptr Sld, xbool ConvertNumbers)

Provides an action listener called after the unit conversion of a solid.
Manual References:
Action Listeners: Solid Level Action Listeners, Action Listeners: Solid Level Action Listeners, Overview of Creo Object TOOLKIT C++: Action Listener Classes
Parameters:
Sld
The solid that was converted.
ConvertNumbers
This is true if the dimensions are converted. This is false if the dimensions are reinterpreted.
Returns:



voidOnBeforeFeatureCreate (pfcSolid_ptr Sld, xint FeatId)

Provides a callback function called before creating a feature.
Manual References:
Action Listeners: Solid Level Action Listeners, Action Listeners: Solid Level Action Listeners, Overview of Creo Object TOOLKIT C++: Action Listener Classes
Parameters:
Sld
The solid where the feature is about to be created.
FeatId
The identifier assigned to the new feature.
Returns:



voidOnAfterFeatureCreate (pfcSolid_ptr Sld, pfcFeature_ptr Feat)

Provides an action listener called after a feature is created.
Manual References:
Action Listeners: Solid Level Action Listeners, Action Listeners: Solid Level Action Listeners, Overview of Creo Object TOOLKIT C++: Action Listener Classes
Parameters:
Sld
The model that owned the feature that was created
Feat
The feature that was just created
Returns:



voidOnAfterFeatureDelete (pfcSolid_ptr Sld, xint FeatId)

Provides an action listener called after a feature is deleted.
Manual References:
Action Listeners: Solid Level Action Listeners, Overview of Creo Object TOOLKIT C++: Action Listener Classes
Parameters:
Sld
The model that owned the feature that was deleted
FeatId
The feature identifier
Returns: