Importing 3D Geometry
Methods Introduced:
For some input formats, the method
pfcBaseSession.GetImportSourceType() returns the type of model that can be imported using a designated file. The input parameters of this method are:
• FileToImport—Path to the file along with its name and extension. which is
• NewModelType—Type of model to be imported. The types of models that can be imported defined by the enumerated data type pfcNewModelImportType and the valid values are:
◦ IMPORT_NEW_IGES
◦ IMPORT_NEW_VDA
◦ IMPORT_NEW_NEUTRAL
◦ IMPORT_NEW_CADDS
◦ IMPORT_NEW_STEP
◦ IMPORT_NEW_STL
◦ IMPORT_NEW_VRML
◦ IMPORT_NEW_POLTXT
◦ IMPORT_NEW_CATIA_SESSION
◦ IMPORT_NEW_CATIA_MODEL
◦ IMPORT_NEW_DXF
◦ IMPORT_NEW_ACIS
◦ IMPORT_NEW_PARASOLID
◦ IMPORT_NEW_ICEM
◦ IMPORT_NEW_DESKTOP
◦ IMPORT_NEW_CATIA_PART
◦ IMPORT_NEW_CATIA_PRODUCT
◦ IMPORT_NEW_UG
◦ IMPORT_NEW_PRODUCTVIEW
◦ IMPORT_NEW_CATIA_CGR
◦ IMPORT_NEW_JT
◦ IMPORT_NEW_SW_PART
◦ IMPORT_NEW_SW_ASSEM
◦ pfcIMPORT_NEW_INVENTOR_PART
◦ pfcIMPORT_NEW_INVENTOR_ASSEM
◦ IMPORT_NEW_CC
◦ IMPORT_NEW_SEDGE_PART
◦ IMPORT_NEW_SEDGE_ASSEMBLY
◦ IMPORT_NEW_SEDGE_SHEETMETAL_PART
• Type—Type of the model. It can be a part, assembly or drawing. The type is defined by the enumerated data type pfcModelType.
• NewModelName—Name for the imported model.
• Filter—Layer filter which is defined by the classpfcLayerImportFilter. This parameter is optional. —
• FileToImport—Path of the file along with its name and extension.
• NewModelImportType—Type of model to be imported.
The method
pfcBaseSession.ImportNewModel() is used to import an external 3D format file and creates a new model or set of models of type
pfcModel. The input parameters of this method are:
• FileToImport—Path to the file along with its name and extension. which is
• NewModelType—Type of model to be imported. The types of models that can be imported defined by the enumerated data type pfcNewModelImportType and the valid values are:
◦ IMPORT_NEW_IGES
◦ IMPORT_NEW_VDA
◦ IMPORT_NEW_NEUTRAL
◦ IMPORT_NEW_CADDS
◦ IMPORT_NEW_STEP
◦ IMPORT_NEW_STL
◦ IMPORT_NEW_VRML
◦ IMPORT_NEW_POLTXT
◦ IMPORT_NEW_CATIA_SESSION
◦ IMPORT_NEW_CATIA_MODEL
◦ IMPORT_NEW_DXF
◦ IMPORT_NEW_ACIS
◦ IMPORT_NEW_PARASOLID
◦ IMPORT_NEW_ICEM
◦ IMPORT_NEW_DESKTOP
◦ IMPORT_NEW_CATIA_PART
◦ IMPORT_NEW_CATIA_PRODUCT
◦ IMPORT_NEW_UG
◦ IMPORT_NEW_PRODUCTVIEW
◦ IMPORT_NEW_CATIA_CGR
◦ IMPORT_NEW_JT
◦ IMPORT_NEW_SW_PART
◦ IMPORT_NEW_SW_ASSEM
◦ pfcIMPORT_NEW_INVENTOR_PART
◦ pfcIMPORT_NEW_INVENTOR_ASSEM
◦ IMPORT_NEW_CC
◦ IMPORT_NEW_SEDGE_PART
◦ IMPORT_NEW_SEDGE_ASSEMBLY
◦ IMPORT_NEW_SEDGE_SHEETMETAL_PART
• Type—Type of the model. It can be a part, assembly or drawing. The type is defined by the enumerated data type pfcModelType.
• NewModelName—Name for the imported model.
• Filter—Layer filter which is defined by the classpfcLayerImportFilter. This parameter is optional. —