Documentação da API > Miscellaneous > Object ProInput > Function ProInputFileReadWithFlags
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:
If file_type is PRO_CONFIG_FILE, the model argument is ignored.
If file_type is PRO_RELATION_FILE, this function does not regenerate after reading the file; it checks for syntax errors. To regenerate the object, use ProSolidRegenerate().
If file_type is PRO_DWG_SETUP_FILE, the function does not repaint the screen. If the model is NULL, the function uses the current drawing.
If file_type is PRO_CABLE_PARAMS_FILE, PRO_CONNECTOR_PARAMS_FILE, PRO_DWG_SETUP_FILE, or PRO_SPOOL_FILE the filename argument should be a file name and extension only, not a full path.
If file_type is PRO_IGES_SECTION, this operates only on an active section model. The user will have to place the imported section geometry in the active section with a mouse click.
Synopsis
#include <ProUtil.h>
ProInputFileReadWithFlags
(
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.
*/
/* (In)
*/
int flags
/* (In)
*/
/* (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).
*/
/* (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.
*/
/* (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.
*/
/* (In)
Unused.
*/
)
Returns
The function successfully processed the file.
A general error occurred and the function failed.
The input filename length is too long for this import file type.
The file format selected is no longer supported on this platform.
See Also
User Guide References
Isto foi útil?