Documentation de l'API > Creating import and custom geometry > Object ProIntf > Function ProIntfSliceFileWithOptionsMdlnameExport
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:
Synopsis
#include <ProUtil.h>
ProIntfSliceFileWithOptionsMdlnameExport
(
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.
*/
/* (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. This is the transformation from the result in the Assembly (top model) coordinates to the desired result (at selected csys if any). If NULL, no transformation will be applied.
*/
ProAsmcomppath* comp_path
/* (In)
The component path, in the case of an assembly component. This is used to compute selected model's transformation in current assembly. If the model is a part, set this to NULL.
*/
)
Returns
The function successfully exported the file.
parameters array is NULL or its size is not 3; or flags values are incorrect; or you specified a nonexistent file type.
There was a triangulation failure.
You do not have a license.
The function is not available in Design Test Mode.
Sample Code References
User Guide References
Est-ce que cela a été utile ?