Category Creating import and custom geometry, Object ProIntf

Function ProIntfSliceFileWithOptionsMdlnameExport


Description
Exports 5 of the 7 "slice" formats (STL, Render, Inventor, CatiaFacets, Optegra Visualizer).

NOTE:

On UNIX machines, file names are case sensitive. 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 ProMdlFileName will be added in a future release.

Replacement in Object TOOLKIT: pfcModel::Export
Synopsis
#include <ProUtil.h>
ProErrorProIntfSliceFileWithOptionsMdlnameExport(
ProMdl model
/* (In)
The pointer to the model to export. If NULL the current model will be used.
*/
ProMdlFileName out_file_name
/* (In)
The name of the output file.
*/
ProImportExportFile file_type
/* (In)
The type of file to export (STL, Inventor, and so on).
*/
double* parameters
/* (In)
ProArray of parameters to be set; in this version this array always has 3 elements, which are interpreted as: chord_height, angle_control, step_size (in future this array may be expanded). angle_control must be from 0.0 to 1.0 Setting chord_height or step_size to values too big or too small (for instance, bigger than the model size or smaller than the model absolute accuracy) may cause an error. If angle_control is out of bounds it will be changed to the closest limit without returning an error.
*/
int config_flags
/* (In)
Bit flags (PRO_FACET_STEP_SIZE_ADJUST and others) to control facet export. See comments against these flags for how to use them.
*/
ProMatrix transf
/* (In)
The transformation matrix. If NULL, no transformation will be applied.
*/
ProAsmcomppath* comp_path
/* (In)
The component path, in the case of an assembly component. If the model is a part, set this to NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully exported the file.
PRO_TK_BAD_INPUTSparameters array is NULL or its size is not 3; or flags values are incorrect; or you specified a nonexistent file type.
PRO_TK_GENERAL_ERRORThere was a triangulation failure.
PRO_TK_NO_LICENSEYou do not have a license.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.

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: Functions superseded from Creo 1.0 to Creo 11.0
  5. Interface: Data Exchange: Exporting 3D Models
  6. Interface: Data Exchange: Exporting 3D Models

Sample Code References:

  1. pt_examples ( TestInterface.c )