Creating Models
Functions Introduced
Creo TOOLKIT supports creation of models for Solids, Manufacturing, Section (two-dimensional only), and Drawing.
The notification function
ProMdlStartAction() is a type for a callback function for
PRO_MDL_START. This function changes the way users can create models by replacing the
Creo Parametric model template dialog box with a user-specified action.
The user-specified action contains user-programmed activities that allow customization of new models by applying templates with more inputs than model creation “on-the-fly” or the standard Creo Parametric template.
The callback function is activated after the user selects OK from the > dialog box, but only if the Use Default Template checkbox is not selected. The user’s application must create a new model of the same type and subtype specified by the callback function.
Setting the configuration option force_new_file_options_dialog to yes forces the Use Default Template button to be hidden, and calls the callback for all models created through the > dialog.
This function supports all model types.
See
Event-driven Programming: Notifications for more data on using callback functions.