Creating Models
Functions Introduced
Creo TOOLKIT supports creation of models for Solids, Manufacturing, Section (two-dimensional only), and Drawing.
See Creating a Solid for a complete description of ProSolidMdlnameCreate().
Note:
 
The function ProDrawingFromTmpltCreate() will be deprecated in a future release. Use the function ProDrawingFromTemplateCreate() instead.
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 File > New 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 File > New dialog.
This function supports all model types.
See Event-driven Programming: Notifications for more data on using callback functions.
도움이 되셨나요?