Methods introduced:
Methods ending in All are called after any event of the specified type. The call is made even if the user did not explicitly request that the action
take place. Methods that do not end in All are only called when the user specifically requests that the event occurs.
The method pfcModelActionListener::OnAfterModelSave is called after successfully saving a model.
The method pfcModelEventActionListener::OnAfterModelCopy is called after successfully copying a model.
The method pfcModelEventActionListener::OnAfterModelRename is called after successfully renaming a model.
The method pfcModelEventActionListener::OnAfterModelErase is called after successfully erasing a model.
The method pfcModelEventActionListener::OnAfterModelDelete is called after successfully deleting a model.
The method pfcModelActionListener::OnAfterModelRetrieve is called after successfully retrieving a model.
The method pfcModelActionListener::OnBeforeModelDisplay is called before displaying a model.
The method pfcModelActionListener::OnAfterModelCreate is called after the successful creation of a model.
The method wfcWSession::AddBeforeModelRetrieveListener supersedes the method wfcWSession::AddModelRetrievePreListener. The method creates a listener. This listener blocks the standard Creo File Open dialog box.
The method
wfcBeforeModelRetrieveActionListener::OnBeforeModelRetrieve supersedes the method
wfcBeforeModelRetrieveListener::OnBeforeModelRetrieve. The method
wfcBeforeModelRetrieveActionListener::OnBeforeModelRetrieve is called when you activate the menu. This method contains its own code for handling the File open event. You must replace the standard
File Open dialog box with the dialog box created by your application to open files. The method also retrieves the model specified in
the object
wfcBeforeModelRetrieveInstructions. Use the method
wfcBeforeModelRetrieveInstructions::Create to create an instance of
wfcBeforeModelRetrieveInstructions object, which specifies the instructions for retrieving the model. The method
wfcBeforeModelRetrieveInstructions::SetRetrieveOptions uses the enumerated data type
wfcWModelRetrieveOption to specify how the model must be retrieved. Use the method
wfcBeforeModelRetrieveInstructions::GetRetrieveOptions to get the type of option used to retrieve the model. The model can be retrieved using the following options:
|
• |
wfcMODEL_RETRIEVE_NORMAL—Retrieves the models normally. |
|
• |
wfcMODEL_RETRIEVE_SIMP_REP—Retrieves the models as a simplified representation. |
|
• |
wfcMODEL_RETRIEVE_VIEW_ONLY—Used for drawings only. Retrieves the model in view only mode. |
Use the methods wfcBeforeModelRetrieveInstructions::GetModelFilePath and wfcBeforeModelRetrieveInstructions::SetModelFilePath to get and set the file path of the model that must be retrieved. The file path includes the path, file name, extension,
and version of the model.
The method wfcBeforeModelSaveAllListener::OnBeforeModelSave is called before a model has been saved. This method provides more functionality than the existing method pfcSessionActionListener::OnBeforeModelSave. The method wfcBeforeModelSaveAllListener::OnBeforeModelSave is called on the current model and also its dependents. For example, before saving an assembly, the method is called on the
assembly and also on all the assembly components. It is also called for various user actions such as, saving a copy of the
model, checkin of a model, and so on. During conflict resolution, the method may be called more than once.
The methods in class wfcModelParamActionListener are triggered whenever these events occur for any parameter in the model.
The method wfcModelParamActionListener::OnBeforeParameterCreate is called before a parameter is created.
The method wfcModelParamActionListener::OnBeforeParameterModify is called before the parameter is modified.
The method wfcModelParamActionListener::OnAfterParameterModify is called after the parameter has been successfully modified.
The method wfcModelParamActionListener::OnAfterParameterDelete is called after the parameter has been deleted.
The method wfcModelAfterRenameAllActionListener::OnAfterModelRenameAll is called after all the models described using the pfcModelDescriptor object have been renamed.
The method wfcModelReplaceActionListener::OnAfterModelReplace is called after successfully replacing a model.