Creating Models
Functions Introduced
• ProSolidMdlnameCreate()
• ProMfgMdlCreate()
• ProSection2DAlloc()
• ProDrawingFromTmpltCreate()
• ProDrawingFromTemplateCreate()
• ProMdlStartAction()
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().
For more information on
ProMfgMdlCreate() see
Creating a Manufacturing Model.
Allocating a Two-Dimensional Section gives more details on
ProSection2DAlloc().
Creating Drawings from Templates has more information on the function
ProDrawingFromTemplateCreate().
|
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 > 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.