Category Creo Parametric fundamentals, Object ProFile

Function ProFileSubtypeGet


Description
Returns the file_type, model_type and/or subtype of a file. For native Creo models, file_type == type.
Synopsis
#include <ProMdl.h>
ProErrorProFileSubtypeGet(
ProPath file
/* (In)
The path to the file.
*/
ProMdlfileType* file_type
/* (Out)
The type of the file.
*/
ProMdlType* type
/* (Out)
The type of the model the file will be in Creo session.
*/
ProMdlsubtype* subtype
/* (Out)
The subtype of the model, PROMDLSTYPE_NONE for types which do not have subtypes. Each of these can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe values were successfully determined.
PRO_TK_BAD_INPUTSfile was NULL, empty, or invalid.
PRO_TK_NOT_EXISTThe file could not be found.
PRO_TK_CANT_OPENThe file could not be opened, or could not be read.

Manual References:

  1. Core: Models and Model Items: Identifying Models
  2. Core: Models and Model Items: Identifying Models

Sample Code References:

  1. pt_examples ( TestMultiCADFile.c )