Object ProInput

Function ProInputFileReadWithFlags


Description
Reads a file into Creo Parametric. The format must be the same as if these files were created by Creo Parametric.

NOTES:

Synopsis
#include <ProUtil.h>
ProErrorProInputFileReadWithFlags(
ProMdl model
/* (In)
A valid object in memory.
*/
ProPath filename
/* (In)
The input file name, including the extension. For some options, this can be the full path to the file.
*/
ProImportExportFile file_type
/* (In)
The type of file to be read in. The valid values are as follows:
*/
int flags
/* (In)
Bitwise flags or PRO_IMPORT_EXPORT_NO_FLAGS.
*/
ProAppData arg1
/* (In)
The application data. If file_type is PRO_CONNECTOR_PARAMS_FILE, arg1 is a int* pointing to a ProIdTable (ProIdTable is an integer array of component identifiers). If file_type is PRO_CABLE_PARAMS_FILE, arg1 is the ProSolid (part pointer).
*/
ProAppData arg2
/* (In)
The application data. If file_type is PRO_CONNECTOR_PARAMS_FILE, arg2 is a int* pointing to the number, which is equal to the number of component identifier(s). If file_type is PRO_CABLE_PARAMS_FILE, arg2 is a wchar_t* to the cable name. If file_type is PRO_RELATION_FILE, arg2 is the int* pointing to feature ID. Pass it NULL to get relations of model.
*/
ProAppData arg3
/* (In)
The application data. If file_type PRO_RELATION_FILE, arg3 is a int*. If it points to 1 then relations in the file should be added to the current relations, else the relations in the file should replace the current relations.
*/
ProAppData arg4
/* (In)
Unused.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully processed the file.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
PRO_TK_LINE_TOO_LONGThe input filename length is too long for this import file type.
PRO_TK_OBSOLETE_FUNCThe file format selected is no longer supported on this platform.
See Also
ProSolidRegenerate

Manual References:

  1. Interface: Data Exchange: Importing Parameter Files