Category Creo Parametric fundamentals, Category Cabling, Object ProInput

Function ProInputFileRead


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

NOTES:

Replacement in Object TOOLKIT: pfcModel::Import
pfcBaseSession::LoadConfigFile
Synopsis
#include <ProUtil.h>
ProErrorProInputFileRead(
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:
*/
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. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Production Applications: Cabling: Finding the Cables in a Harness
  3. Production Applications: Cabling: Managing Spools
  4. Production Applications: Cabling: Managing Spools
  5. Production Applications: Cabling: Connectors Parameters
  6. Production Applications: Cabling: Connectors Parameters
  7. Production Applications: Cabling: Cable Parameters
  8. Production Applications: Cabling: Cable Parameters
  9. Drawings: Drawing Setup
  10. Drawings: Drawing Setup
  11. Interface: Data Exchange: Importing Parameter Files
  12. Interface: Data Exchange: Importing Parameter Files
  13. Interface: Data Exchange: Importing 2D Models
  14. Interface: Data Exchange: Importing 2D Models

Sample Code References:

  1. pt_examples ( TestInterface.c )