Category 2D interface, Object Pro2dImport

Function Pro2dImportAppend


Description
Imports a 2d geometry file into an existing 2d Creo Parametric model.
Replacement in Object TOOLKIT: pfcModel::Import
Synopsis
#include <ProUtil.h>
ProErrorPro2dImportAppend(
ProImportExportFile format
/* (In)
The type of file to be imported. The following values are supported:
*/
ProPath filename
/* (In)
The name (absolute path or relative path ) of the file to be imported.
*/
ProMdl model
/* (In)
The model into which to append the data.
*/
ProBoolean scale_to_fit
/* (In)
If the current model has a different sheet size from that specified by the imported file, scale_to_fit should be TRUE to retain the current sheet size, or FALSE to adopt the new one .
*/
ProBoolean fit_left_corner
/* (In)
If the imported file retain his original sheet size, the bottom left corner of the file will be adjusted to bottom left corner of the current model for PRO_B_TRUE, and imported "as is" for PRO_B_FALSE.
*/
)
Returns
PRO_TK_NO_ERRORImported file appended successfuly to the current model.
PRO_TK_BAD_INPUTSIllegal model type or import file type.
PRO_TK_INVALID_FILEThe input file could not be found, or contained unrecoverable errors.
PRO_TK_NO_LICENSEThere is no license for this import option. PRO_TK_OBSOLETE_FUNC- The file format selected is no longer supported on this platform.

Manual References:

  1. Interface: Data Exchange: Importing 2D Models
  2. Interface: Data Exchange: Importing 2D Models
  3. Interface: Data Exchange: Importing 2D Models