Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlDisplay


Description
Displays the specified model in the current view. Note:
  • If no model is displayed, the specified model is placed in the base window.
  • If the specified model has been assigned a new window, the model will be displayed in the new window.
If model is NULL, the function displays the object in the current window. The valid types of model that can be displayed are as follows: Note: Calling this function will update the display, but may not activate the UI. To achieve it, the model window should be activated (for instance, by the user).
Synopsis
#include <ProMdl.h>
ProErrorProMdlDisplay(
ProMdl model
/* (In)
The model to display
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully displayed the model.
PRO_TK_E_NOT_FOUNDThe model is NULL, and there is no current object.
PRO_TK_INVALID_PTRThe specified model is not in memory.
PRO_TK_GENERAL_ERRORThere was a general error and the function failed.
PRO_TK_INVALID_TYPEYou specified an invalid model type.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Models and Model Items: File Management Operations
  3. Interface: Data Exchange: Exporting 3D Models
  4. Model-Based Definition and Drawing Tables: Repeat Regions

Sample Code References:

  1. pt_async ( TestAsync.c )
  2. pt_async ( TestAsync.c )
  3. pt_examples ( TestAsm.c )
  4. pt_examples ( TestMultiCADFile.c )
  5. pt_examples ( TestDbms.c )
  6. pt_examples ( TestDbms.c )
  7. pt_examples ( TestImportfeat.c )
  8. pt_examples ( TestDrwView.c )
  9. pt_userguide ( UgInterfaceImport.c )