Solid Operations
Method Introduced:
The method
pfcSolid::CreateImportFeat creates a new import feature in the solid and takes the following input arguments:
• IntfData—Specifies the source of data from which to create the import feature. It is given by the pfcIntfDataSource object. The type of source data that can be imported is given by the pfcIntfType class and can be of the following types:
◦ pfcINTF_NEUTRAL
◦ pfcINTF_NEUTRAL_FILE
◦ pfcINTF_IGES
◦ pfcINTF_STEP
◦ pfcINTF_VDA
◦ pfcINTF_ICEM
◦ pfcINTF_ACIS
◦ pfcINTF_DXF
◦ pfcINTF_CDRS
◦ pfcINTF_STL
◦ pfcINTF_VRML
◦ pfcINTF_PARASOLID
◦ pfcINTF_AI
◦ pfcINTF_CATIA_PART
◦ pfcINTF_UG
◦ pfcINTF_PRODUCTVIEW
◦ pfcINTF_CATIA_CGR
◦ pfcINTF_JT
◦ pfcINTF_INVENTOR_PART
◦ pfcINTF_INVENTOR_ASM
◦ pfcINTF_IBL
◦ pfcINTF_PTS
◦ pfcINTF_SE_PART
◦ pfcINTF_SE_SHEETMETAL_PART
• CoordSys—Specifies the pointer to a reference coordinate system. If this is NULL, the method uses the default coordinate system.
• FeatAttr—Specifies the attributes for creation of the new import feature given by the pfcImportFeatAttr object. If this pointer is NULL, the method uses the default attributes.
The method
wfcWSolid::ImportAsFeat creates a new import feature in the solid. It takes the following input arguments:
• IntfData—Specifies the source of data using which the import feature is created. You can specify the data source as a file or interface data of only neutral type.
◦ For a file, the data source is specified as a pfcIntfDataSource object. The type of source data that can be imported is given by the enumerated data type pfcIntfType.
• CoordSys—Specifies the pointer to a reference coordinate system. If this is NULL, the method uses the default coordinate system.
• CutOrAdd—Specifies whether the import feature must be created as a cut or a protrusion. The default option is to add and has the value PRO_B_FALSE. If NULL, the method performs an add operation.
• Profile—Specifies the import profile path. It can be NULL.
The method
wfcWSession::ImportAsModel imports a model in the solid. It takes the following arguments:
• FileToImport—Specifies the path of the file along with its name and extension.
• NewModelType—Specifies the type of the file to be imported.
• Type—Specifies the type of the model to be created. It can be a part, assembly, or drawing.
• NewModelName—Specifies a name for the imported model.
• ModelRepType—Specifies the representation type for the new imported model.
• profile—Specifies the import profile path. It can be NULL.
|
|
The input argument profile allows you to include the import of Creo Elements/Direct containers, face parts, wire parts, and empty parts.
|
• Filter—Specifies the filter string in the form of callback method. The method determines the display and mapping of layers of the imported model. It can be NULL.