Category Creating import and custom geometry, Object ProImportfeat

Function ProImportfeatWithProfileCreate


Description
Creates a new import feature in the solid using profile.

Note: Once a profile is set, it remains valid for the entire session unless it is reset with another profile.

Replacement in Object TOOLKIT: pfcSolid::CreateImportFeat
wfcWSolid::ImportAsFeat
Synopsis
#include <ProImportfeat.h>
ProErrorProImportfeatWithProfileCreate(
ProSolid p_solid
/* (In)
The pointer to the solid (part). Assembly case is not supported.
*/
ProIntfDataSource* data_source
/* (In)
The source of data from which to create the import feature.
*/
ProCsys p_csys
/* (In)
The pointer to a reference coordinate system. If this is NULL, the function uses the default coordinate system.
*/
ProPath profile
/* (In)
Profile path. Can be NULL, in which case it works identically with ProImportfeatCreate
*/
ProBoolean cut_or_add
/* (In)
Set to PRO_B_TRUE for imported geometry representing a cut or PRO_B_FALSE otherwise.
*/
ProFeature* p_feat_handle
/* (Out)
The handle to the new import feature. If this is NULL the feature will be created anyway.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the new import feature.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_UNSUPPORTEDCreo Parametric does not support import of the indicated file.
PRO_TK_NOT_EXISTNo profile found.
PRO_TK_INVALID_FILEprofile is not readable.
PRO_TK_NO_LICENSEMissing the required license to perform this import feature operation.

Manual References:

  1. Interface: Importing Features: Creating Import Features from Files
  2. Interface: Importing Features: Creating Features from the Interface Data
  3. Interface: Importing Features: Creating Features from the Interface Data
  4. Technical Summary of Changes for Creo 4.0 F000: License INTF_for_JT Required to Import and Export JT Files