Category 3D interface, Category Creating import and custom geometry, Object ProIntf

Function ProIntfSliceFileExport


DEPRECATED: Since Creo 2
SUPERSEDED BY: ProIntfSliceFileWithOptionsMdlnameExport
Description
Exports 5 of the 7 "slice" formats (STL, Render, Inventor, CatiaFacets, Optegra Visualizer).

NOTE:

On UNIX machines, file names are case sensitive.

This API is deprecated. Use ProIntfSliceFileWithOptionsMdlnameExport instead. This API is equivalent to ProIntfSliceFileWithOptionsMdlnameExport with only PRO_FACET_STEP_SIZE_OFF set for config_flags.

Synopsis
#include <ProUtil.h>
ProErrorProIntfSliceFileExport(
ProMdl model
/* (In)
The pointer to the model to export.
*/
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 quality[2]
/* (In)
The array that contains the maximum chord height and angle control. If quality[0] < 0.0, the minimum chord height will be used.
*/
ProMatrix transf
/* (In)
The transformation matrix.
*/
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_INPUTSYou specified incorrect quality settings, or 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. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0