Working with Notifications
Notifications allow the application to detect certain types of events in . You can call functions before or after such events.
Notifications to all of the file management operations in , such as save, retrieve, copy, rename, and so on, are supported for assemblies with non- components.
The following types of file management notifications are supported for multi-CAD assemblies:
File Management Events—Notifications that are called after successful file management operations in .
Pre-file Management Events—Your callback function is called before the file management event. The functions are called only for models that are the explicit objects of the file management operation.
Pre-All File Management Events—Your callback function is called before all file management events on models, even if those models were not explicitly specified by the user.
Post-file Management Events—Your callback function is called after the file management operation. The functions are called only for models that are the explicit objects of the file management operation.
Post All File Management Events—Your callback function is called after all file management events on models, even if those models were not explicitly specified by the user.
File Management Failure Events—Notifications that are called after the file management operations in fail.
The following events and callback functions are supported for multi-CAD assemblies:
New Event
New Signature
Pre-file Management Events
PRO_MODEL_RETRIEVE_PRE
(*ProModelRetrievePreAction)
PRO_MODEL_SAVE_PRE
(*ProModelSavePreAction)
PRO_MODEL_COPY_PRE
(*ProModelCopyPreAction)
PRO_MODEL_RENAME_PRE
(*ProModelRenamePreAction)
Pre-All File Management Events
PRO_MODEL_SAVE_PRE_ALL
(*ProModelSavePreAllAction)
Post File Management Events
PRO_MODEL_COPY_POST
(*ProModelCopyPostAction)
PRO_MODEL_RENAME_POST
(*ProModelRenamePostAction)
PRO_MODEL_ERASE_POST
(*ProModelErasePostAction)
PRO_MODEL_RETRIEVE_POST
(*ProModelRetrievePostAction)
PRO_MODEL_SAVE_POST
(*ProModelSavePostAction)
Post All File Management Events
PRO_MODEL_SAVE_POST_ALL
(*ProModelSavePostAllAction)
PRO_MODEL_ERASE_POST_ALL
(*ProModelErasePostAllAction)
PRO_MODEL_RETRIEVE_POST_ALL
(*ProModelRetrievePostAllAction)
PRO_MODEL_COPY_POST_ALL
(*ProModelCopyPostAllAction)
PRO_MODEL_RENAME_POST_ALL
(*ProModelRenamePostAllAction)
File Management Failed Events
PRO_MODEL_DBMS_FAILURE
(*ProModelDbmsFailureAction)
這是否有幫助?