Category Solids and parts, Object ProSolid

Function ProSolidShrinkwrapMdlnameCreate


Description
Exports a shrinkwrap version of the provided model. Note: In Creo 3 this function does not support names longer than 31 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProMdlName will be added in a future release.
Replacement in Object TOOLKIT: pfcSolid::ExportShrinkwrap
Synopsis
#include <ProShrinkwrap.h>
ProErrorProSolidShrinkwrapMdlnameCreate(
ProSolid solid
/* (In)
The model to be exported as a shrinkwrap.
*/
ProSolid output_model
/* (In)
The model where the shrinkwrap geometry will be created. This could be an empty model produced by ProSolidMdlnameCreate(), or a template model with predefined geometry. If exporting VRML or STL, this can be NULL.
*/
ProMdlName output_file
/* (In)
The name of the file to create, if exporting VRML or STL. (The ".stl" or ".wrl" extension will be appended automatically, and the file created in the current directory.) If exporting as a Creo Parametric model, this can be NULL.
*/
ProShrinkwrapOptions output_options
/* (In)
The structure defining the shrinkwrap options.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully produced the shrinkwrap model.
PRO_TK_BAD_INPUTSOne or more input arguments is invalid.
PRO_TK_BAD_CONTEXTInvalid combination of input arguments.
PRO_TK_GENERAL_ERRORan error occurred and the function failed.
PRO_TK_LINE_TOO_LONGName length of the output file is more than 31 chars.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  2. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  3. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions
  4. Technical Summary of Changes for Creo 11.0.0.0: Updates to Error Types
  5. Interface: Data Exchange: Shrinkwrap Export

Sample Code References:

  1. pt_userguide ( UgInterfaceExport.c )
  2. pt_userguide ( UgInterfaceExport.c )