Category Creating import and custom geometry, Object ProIntf

Function ProIntfSliceFileWithOptionsExport


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProIntfSliceFileWithOptionsMdlnameExport
Description
Note: This function is deprecated Use ProIntfSliceFileWithOptionsMdlnameExport instead. Exports 5 of the 7 "slice" formats (STL, Render, Inventor, CatiaFacets, Optegra Visualizer).

NOTE:

On UNIX machines, file names are case sensitive.

Synopsis
#include <ProUtil.h>
ProErrorProIntfSliceFileWithOptionsExport(
ProMdl model
/* (In)
The pointer to the model to export. If NULL the current model will be used.
*/
ProFileName 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: Superseded Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Data Exchange