Notification Functions
Creo TOOLKIT notifications are available when a drawing table or a row from a drawing table is deleted. The notification functions are established in a session using the function
ProNotificationSet().
The notification function
ProDwgtableDeletePreAction() is called before deletion of a drawing table. This function is available by calling
ProNotificationSet() with the value of the notify type as
PRO_DWGTABLE_DELETE_PRE.
The notification function
ProDwgtableDeletePostAction() is called after deletion of a drawing table. This function is available by calling
ProNotificationSet() with the value of the notify type as
PRO_DWGTABLE_DELETE_POST.
The notification function
ProDwgtableRowDeletePreAction() is called before the deletion of a row from the selected drawing table. The input arguments for this function are as follows:
• table—The table containing the row to be deleted.
• i_row—The index of the row to be deleted.
|
Note:
|
The index of the first row is 1.
|
This function is available by calling
ProNotificationSet() with the value of the notify type as
PRO_DWGTABLE_ROW_DELETE_PRE. The specified row is not deleted if the application returns an error from this callback. If the user cancels the deletion, an appropriate message should be displayed, if required.
The notification function
ProDwgtableRowDeletePostAction() is called after the deletion of a row from the selected drawing table. This function is available by calling
ProNotificationSet() with the value of the notify type as
PRO_DWGTABLE_ROW_DELETE_POST.
Example 15: Creation of Table Listing Datum Points
The sample code in the file UgDwgtableExamples.c located at <creo_toolkit_loadpoint>/protk_appls/pt_userguide/ptu_drawing, shows a command that creates a drawing table listing the datum points in a model shown in a drawing view.