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 pfcModel.ModelActionListener.OnAfterModelSave is called after successfully saving a model.
The method pfcModel.ModelEventActionListener.OnAfterModelCopy is called after successfully copying a model.
The method pfcModel.ModelEventActionListener.OnAfterModelRename is called after successfully renaming a model.
The method pfcModel.ModelEventActionListener.OnAfterModelErase is called after successfully erasing a model.
The method pfcModel.ModelEventActionListener.OnAfterModelDelete is called after successfully deleting a model.
The method pfcModel.ModelActionListener.OnAfterModelRetrieve is called after successfully retrieving a model.
The method pfcModel.ModelActionListener.OnBeforeModelDisplay is called before displaying a model.
Note
The method pfcModel.ModelActionListener.OnBeforeModelDisplay is not supported in asynchronous mode.
The method pfcModel.ModelActionListener.OnAfterModelCreate is called after the successful creation of a model.
The method wfcSession.WSession.AddBeforeModelRetrieveListener supersedes the method wfcSession.WSession.AddModelRetrievePreListener. The method creates a listener. This listener blocks the standard Creo File Open dialog box.
The method wfcSession.WSession.AddModelRetrievePreListener creates a listener. This listener blocks the standard Creo File Open dialog box.
The method
wfcSession.BeforeModelRetrieveActionListener.OnBeforeModelRetrieve supersedes the method
wfcSession.BeforeModelRetrieveListener.OnBeforeModelRetrieve. The method
wfcSession.BeforeModelRetrieveActionListener.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
wfcSession.BeforeModelRetrieveInstructions. Use the method
wfcSession.wfcSession.BeforeModelRetrieveInstructions_Create to create an instance of
wfcSession.BeforeModelRetrieveInstructions object, which specifies the instructions for retrieving the model. The method
wfcSession.BeforeModelRetrieveInstructions.SetRetrieveOptions uses the enumerated data type
wfcSession.WModelRetrieveOption to specify how the model must be retrieved. Use the method
wfcSession.BeforeModelRetrieveInstructions.GetRetrieveOptions to get the type of option used to retrieve the model. The model can be retrieved using the following options:
|
• |
MODEL_RETRIEVE_NORMAL—Retrieves the models normally. |
|
• |
MODEL_RETRIEVE_SIMP_REP—Retrieves the models as a simplified representation. |
|
• |
MODEL_RETRIEVE_VIEW_ONLY—Used for drawings only. Retrieves the model in view only mode. |
Use the methods wfcSession.BeforeModelRetrieveInstructions.GetModelFilePath and wfcSession.BeforeModelRetrieveInstructions.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 wfcSession.BeforeModelSaveAllListener.OnBeforeModelSave is called before a model has been saved. This method provides more functionality than the existing method pfcSession.SessionActionListener.OnBeforeModelSave. The method wfcSession.BeforeModelSaveAllListener.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 interface com.ptc.wfc.wfcModelParamActionListener are triggered whenever these events occur for any parameter in the model.
The method wfcModel.ModelParamActionListener.OnBeforeParameterCreate is called before a parameter is created.
The method wfcModel.ModelParamActionListener.OnBeforeParameterModify is called before the parameter is modified.
The method wfcModel.ModelParamActionListener.OnAfterParameterModify is called after the parameter has been successfully modified.
The method wfcModel.ModelParamActionListener.OnAfterParameterDelete is called after the parameter has been deleted.
The method wfcModel.ModelAfterRenameAllActionListener.OnAfterModelRenameAll is called after all the models described using the pfcModel.ModelDescriptor object have been renamed.
The method wfcModel.ModelReplaceActionListener.OnAfterModelReplace is called after successfully replacing a model.