Interface
This section describes various methods of importing and exporting files in Creo Object TOOLKIT C++.
Exporting Files and 2D Models
Method Introduced:
The method pfcModel::Export exports model data to a file. The exported files are placed in the current Creo working directory. The input parameters are:
•  filename—Output file name including extensions
•  exportdata—The pfcExportInstructions object that controls the export operation. The type of data that is exported is given by the pfcExportType object.
There are four general categories of files to which you can export models:
•  File types whose instructions inherit from pfcGeomExportInstructions.
These instructions export files that contain precise geometric information used by other CAD systems.
•  File types whose instructions inherit from pfcCoordSysExportInstructions.
These instructions export files that contain coordinate information describing faceted, solid models (without datums and surfaces).
•  File types whose instructions inherit from pfcFeatIdExportInstructions.
These instructions export information about a specific feature.
•  General file types that inherit only from pfcExportInstructions.
These instructions provide conversions to file types such as BOM (bill of materials).
For information on exporting to a specific format, see the Creo Object TOOLKIT C++ APIWizard and theCreo Help.
Export Instructions
Export Instructions Table
Interface
Used to Export
pfcRelationExportInstructions
A list of the relations and parameters in a part or assembly
pfcModelInfoExportInstructions
Information about a model, including units information, features, and children
pfcProgramExportInstructions
A program file for a part or assembly that can be edited to change the model
pfcIGESExportInstructions
A drawing in IGES format
pfcDXFExportInstructions
A drawing in DXF format
pfcRenderExportInstructions
A part or assembly in RENDER format
pfcSTLASCIIExportInstructions
A part or assembly to an ASCII STL file
pfcSTLBinaryExportInstructions
A part or assembly in a binary STL file
pfcBOMExportInstructions
A BOM for an assembly
pfcDWGSetupExportInstructions
A drawing setup file
pfcFeatInfoExportInstructions
Information about one feature in a part or assembly
pfcMfgFeatCLExportInstructions
A cutter location (CL) file for one Creo NC sequence in a manufacturing assembly
pfcMfgOperClExportInstructions
A cutter location (CL) file for all the Creo NC sequences in a manufacturing assembly
pfcMaterialExportInstructions
A material from a part
pfcCGMFILEExportInstructions
A drawing in CGM format
pfcInventorExportInstructions
A part or assembly in Inventor format
pfcFIATExportInstructions
A part or assembly in FIAT format
pfcConnectorParamExportInstructions
The parameters of a connector to a text file
pfcCableParamsFileInstructions
Cable parameters from an assembly
CATIAFacetsExportInstructions
A part or assembly in CATIA format (as a faceted model)
pfcVRMLModelExportInstructions
A part or assembly in VRML format
pfcSTEP2DExportInstructions
A two-dimensional STEP format file
pfcMedusaExportInstructions
A drawing in MEDUSA file
pfcCADDSExportInstructions
A CADDS5 solid model
pfcNEUTRALFileExportInstructions
A Creo part to neutral format
pfcProductViewExportInstructions
A part, assembly, or drawing in Creo Viewformat
pfcSliceExportData
A slice export format
Exporting Drawing Sheets
Methods Introduced:
When you export a drawing to DXF format, use the methods pfcDXFExportInstructions::GetOptionValue and pfcDXFExportInstructions::SetOptionValue to get and set the options that are required to export multiple sheets.
The options required to export multiple sheets of a drawing are specified using the pfcExport2DOption object.
The method pfcExport2DOptions::Create creates a new instance of the pfcExport2DOption object. This object contains the following options:
•  pfcExportSheetOption—Specifies the option for exporting multiple drawing sheets. Use the method pfcExport2DOption::SetExportSheetOption to set the option for exporting multiple drawing sheets. The options are given by the pfcExport2DSheetOption class and can be of the following types:
  pfcEXPORT_CURRENT_TO_MODEL_SPACE—Exports only the drawing’s current sheet as model space to a single file. This is the default type.
  pfcEXPORT_CURRENT_TO_PAPER_SPACE—Exports only the drawing’s current sheet as paper space to a single file. This type is the same as pfcEXPORT_CURRENT_TO_MODEL_SPACE for formats that do not support the concept of model space and paper space.
  pfcEXPORT_ALL—Exports all the sheets in a drawing to a single file as paper space, if applicable for the format type.
  pfcEXPORT_SELECTED—Exports selected sheets in a drawing as paper space and one sheet as model space.
•  pfcModelSpaceSheet—Specifies the sheet number that needs be exported as model space. This option is applicable only if the export formats support the concept of model space and paper space and if pfcExportSheetOption is set to pfcEXPORT_SELECTED. Use the method pfcExport2DOption::SetModelSpaceSheet to set this option.
•  Sheets—Specifies the sheet numbers that need to be exported as paper space. This option is applicable only if pfcExportSheetOption is set to pfcEXPORT_SELECTED. Use the method pfcExport2DOption::SetSheets to set this option.
Exporting to Faceted Formats
The methods described in this section support the export of Creo drawings and solid models to faceted formats like CATIA CGR.
Methods Introduced:
The methods pfcTriangulationInstructions::GetAngleControl and pfcTriangulationInstructions::SetAngleControl gets and sets the angle control for the exported facet drawings and models. You can set the value between 0.0 to 1.0.
Use the methods pfcTriangulationInstructions::GetChordHeight and pfcTriangulationInstructions::SetChordHeight to get and set the chord height for the exported facet drawings and models.
The methods pfcTriangulationInstructions::GetStepSize and pfcTriangulationInstructions::SetStepSize allow you to control the step size for the exported files. The default value is 0.0.
Note
You must pass the value of Step Size as NULL, if you specify the Quality value.
The methods pfcTriangulationInstructions::GetFacetControlOptions and pfcTriangulationInstructions::SetFacetControlOptions get and set the flags that control the facet export options. You can set the bit flags using the pfcFacetControlFlag object. It has the following values:
•  pfcFACET_STEP_SIZE_ADJUST—Adjusts the step size according to the component size.
•  pfcFACET_CHORD_HEIGHT_ADJUST—Adjusts the chord height according to the component size.
•  pfcFACET_USE_CONFIG—CONFIG—If this flag is set, values of the flags pfcFACET_STEP_SIZE_OFF, pfcFACET_STEP_SIZE_ADJUST, and pfcFACET_CHORD_HEIGHT_ADJUST are ignored and the configuration settings from the Creo user interface are used during the export operation.
•  pfcFACET_CHORD_HEIGHT_DEFAULT—Uses the default value set in the Creo user interface for the chord height.
•  pfcFACET_ANGLE_CONTROL_DEFAULT—Uses the default value set in the Creo user interface for the angle control.
•  pfcFACET_STEP_SIZE_DEFAULT—Uses the default value set in the Creo user interface for the step size.
•  pfcFACET_STEP_SIZE_OFF—Switches off the step size control.
•  pfcFACET_FORCE_INTO_RANGE—Forces the out-of-range parameters into range. If any of the pfcFACET_*_DEFAULT option is set, then the option pfcFACET_FORCE_INTO_RANGE is not applied on that parameter.
•  pfcFACET_STEP_SIZE_FACET_INCLUDE_QUILTS—Includes quilts in the export of Creo model to the specified format.
•  pfcEXPORT_INCLUDE_ANNOTATIONS—Includes annotations in the export of Creo model to the specified format.
Note
To include annotations, during the export of Creo model, you must call the method pfcModel::Display before calling pfcModel::Export.
Exporting Using Coordinate System
The methods described in this section support the export of files with information about the faceted solid models (without datums and surfaces). The files are exported in reference to the coordinate-system feature in the model being exported.
Methods Introduced:
The method pfcCoordSysExportInstructions::GetCsysName returns the name of the name of a coordinate system feature in the model being exported. It is recommended to use the coordinate system that places the part or assembly in its upper-right quadrant, so that all position and distance values of the exported assembly or part are positive. The method pfcCoordSysExportInstructions::SetCsysName allows you to set the coordinate system feature name.
The methods pfcCoordSysExportInstructions::GetQuality and pfcCoordSysExportInstructions::SetQuality can be used instead of pfcCoordSysExportInstructions::GetMaxChordHeight and pfcCoordSysExportInstructions::GetMaxChordHeight and pfcCoordSysExportInstructions::GetAngleControl and pfcCoordSysExportInstructions::SetAngleControl. You can set the value between 1 and 10. The higher the value you pass, the lower is the Maximum Chord Height setting and higher is the Angle Control setting the method uses. The default Quality value is 1.0.
Note
You must pass the value of Quality as NULL, if you use Maximum Chord Height and Angle Control values. If Quality, Maximum Chord Height, and Angle Control are all NULL, then the Quality setting of 3 is used.
Use the methods pfcCoordSysExportInstructions::GetMaxChordHeight and pfcCoordSysExportInstructions::SetMaxChordHeight to work with the maximum chord height for the exported files. The default value is 0.1.
Note
You must pass the value of Maximum Chord Height as NULL, if you specify the Quality value.
The methods pfcCoordSysExportInstructions::GetAngleControl and pfcCoordSysExportInstructions::SetAngleControl allow you to work with the angle control setting for the exported files. The default value is 0.1.
Note
You must pass the value of Angle Control as NULL, if you specify the Quality value.
The methods pfcCoordSysExportInstructions::GetSliceExportData and pfcCoordSysExportInstructions::SetSliceExportData get and set the pfcModelSliceExportData data object that specifies data for the slice export. The options in this object are described as follows:
•  CompIds—Specifies the sequence of integers that identify the components that form the path from the root assembly down to the component part or assembly being referred to. Use the methods pfcSliceExportData::GetCompIds and pfcSliceExportData::SetCompIds to work with the component IDs.
The methods pfcCoordSysExportInstructions::GetStepSize and pfcCoordSysExportInstructions::SetStepSize allow you to control the step size for the exported files. The default value is 0.0.
Note
You must pass the value of Step Size as NULL, if you specify the Quality value.
The methods pfcCoordSysExportInstructions::GetFacetControlOptions and pfcCoordSysExportInstructions::SetFacetControlOptions get and set the flags that control the facet export options using the pfcFacetControlFlag object. For more information on the bit flag values, please refer to the section Exporting to Faceted Formats
The method pfcSelection::SetIntf3DCsys() sets the reference coordinate system for the export. The input argument ReferenceCsys is the reference coordinate system selection. Call this method without any argument to set default coordinate system. Reference coordinate system is not supported for CADDS and NEUTRAL file types.
Exporting to PDF and U3D
The methods described in this section support the export of Creo drawings and solid models to Portable Document Format (PDF) and U3D format. You can export a drawing or a 2D model as a 2D raster image embedded in a PDF file. You can export Creo solid models in the following ways:
•  As a U3D model embedded in a one-page PDF file
•  As 2D raster images embedded in the pages of a PDF file representing saved views
•  As a standalone U3D file
While exporting multiple sheets of a Creo drawing to a PDF file, you can choose to export all sheets, the current sheet, or selected sheets.
These methods also allow you to insert a variety of non-geometric information to improve document content, navigation, and search.
Methods Introduced:
The method pfcPDFExportInstructions::Create creates a new instance of the pfcPDFExportInstructions data object that describes how to exportCreo drawings or solid models to the PDF and U3D formats. The options in this object are described as follows:
•  FilePath—Specifies the name of the output file. Use the method pfcPDFExportInstructions::SetFilePath to set the name of the output file.
•  Options—Specifies a collection of PDF export options of the type pfcPDFOption. Create a new instance of this object using the method pfcPDFOption::Create. This object contains the following attributes:
  OptionType—Specifies the type of option in terms of the pfcPDFOptionType class. Set this option using the method pfcPDFOption::SetOptionType.
  OptionValue—Specifies the value of the option in terms of the pfcArgValue object. Set this option using the method pfcPDFOption::SetOptionValue.
Use the method pfcPDFExportInstructions::SetOptions to set the collection of PDF export options.
•  ProfilePath—Specifies the export profile path. Use the method pfcPDFExportInstructions::SetProfilePath to set the profile path. When you set the profile path, the PDF export options set in the object pfcPDFExportInstructions are ignored when the method pfcModel::Export is called. You can set the profile path as NULL.
Note
You can specify the profile path only for drawings.
The types of options (given by the pfcPDFOptionType class) available for export to PDF and U3D formats are described as follows:
•  pfcPDFOPT_FONT_STROKE—Allows you to switch between using TrueType fonts or “stroking” text in the resulting document. This option is given by the pfcPDFFontStrokeMode class and takes the following values:
  pfcPDF_USE_TRUE_TYPE_FONTS—Specifies TrueType fonts. This is the default type.
  pfcPDF_STROKE_ALL_FONTS—Specifies the option to stroke all fonts.
•  pfcPDFOPT_COLOR_DEPTH—Allows you to choose between color, grayscale, or monochrome output. This option is given by the pfcPDFColorDepth class and takes the following values:
  pfcPDF_CD_COLOR—Specifies color output. This is the default value.
  pfcPDF_CD_GRAY—Specifies grayscale output.
  pfcPDF_CD_MONO—Specifies monochrome output.
•  pfcPDFOPT_HIDDENLINE_MODE—Enables you to set the style for hidden lines in the resulting PDF document. This option is given by the pfcPDFHiddenLineMode class and takes the following values:
  pfcPDF_HLM_SOLID—Specifies solid hidden lines.
  pfcPDF_HLM_DASHED—Specifies dashed hidden lines. This is the default type.
•  pfcPDFOPT_SEARCHABLE_TEXT—If true, stroked text is searchable. The default value is true.
•  pfcPDFOPT_RASTER_DPI—Allows you to set the resolution for the output of any shaded views in DPI. It can take a value between 100 and 600. The default value is 300.
•  pfcPDFOPT_LAUNCH_VIEWER—If true, launches the Adobe Acrobat Reader. The default value is true.
•  pfcPDFOPT_LAYER_MODE—Enables you to set the availability of layers in the document. It is given by the pfcPDFLayerMode class and takes the following values:
  pfcPDF_LAYERS_ALL—Exports the visible layers and entities. This is the default.
  pfcPDF_LAYERS_VISIBLE—Exports only visible layers in a drawing.
  pfcPDF_LAYERS_NONE—Exports only the visible entities in the drawing, but not the layers on which they are placed.
•  pfcPDFOPT_PARAM_MODE—Enables you to set the availability of model parameters as searchable metadata in the PDF document. It is given by the pfcPDFParameterMode class and takes the following values:
  pfcPDF_PARAMS_ALL—Exports the drawing and the model parameters to PDF. This is the default.
  pfcPDF_PARAMS_DESIGNATED—Exports only the specified model parameters in the PDF metadata.
  pfcPDF_PARAMS_NONE—Exports the drawing to PDF without the model parameters.
•  pfcPDFOPT_HYPERLINKS—Sets hyperlinks to be exported as label text only or sets the underlying hyperlink URLs as active. The default value is true, specifying that the hyperlinks are active.
•  pfcPDFOPT_BOOKMARK_ZONES—If true, adds bookmarks to the PDF showing zoomed in regions or zones in the drawing sheet. The zone on an A4-size drawing sheet is ignored.
•  pfcPDFOPT_BOOKMARK_VIEWS—If true, adds bookmarks to the PDF document showing zoomed in views on the drawing.
•  pfcPDFOPT_BOOKMARK_SHEETS—If true, adds bookmarks to the PDF document showing each of the drawing sheets.
•  pfcPDFOPT_BOOKMARK_FLAG_NOTES—If true, adds bookmarks to the PDF document showing the text of the flag note.
•  pfcPDFOPT_TITLE—Specifies a title for the PDF document.
•  pfcPDFOPT_AUTHOR—Specifies the name of the person generating the PDF document.
•  pfcPDFOPT_SUBJECT—Specifies the subject of the PDF document.
•  pfcPDFOPT_KEYWORDS—Specifies relevant keywords in the PDF document.
•  pfcPDFOPT_PASSWORD_TO_OPEN—Sets a password to open the PDF document. By default, this option is NULL, which means anyone can open the PDF document without a password.
•  pfcPDFOPT_MASTER_PASSWORD—Sets a password to restrict or limit the operations that the viewer can perform on the opened PDF document. By default, this option is NULL, which means you can make any changes to the PDF document regardless of the settings of the modification flags pfcPDFOPT_ALLOW_*.
•  pfcPDFOPT_RESTRICT_OPERATIONS—If true, enables you to restrict or limit operations on the PDF document. By default, is is false.
•  pfcPDFOPT_ALLOW_MODE—Enables you to set the security settings for the PDF document. This option must be set if pfcPDFOPT_RESTRICT_OPERATIONS is set to true. It is given by the pfcPDFRestrictOperationsMode class and takes the following values:
  pfcPDF_RESTRICT_NONE—Specifies that the user can perform any of the permitted viewer operations on the PDF document. This is the default value.
  pfcPDF_RESTRICT_FORMS_SIGNING—Restricts the user from adding digital signatures to the PDF document.
  pfcPDF_RESTRICT_INSERT_DELETE_ROTATE—Restricts the user from inserting, deleting, or rotating the pages in the PDF document.
  pfcPDF_RESTRICT_COMMENT_FORM_SIGNING—Restricts the user from adding or editing comments in the PDF document.
  pfcPDF_RESTRICT_EXTRACTING—Restricts the user from extracting pages from the PDF document.
•  pfcPDFOPT_ALLOW_PRINTING—If true, allows you to print the PDF document. By default, it is true.
•  pfcPDFOPT_ALLOW_PRINTING_MODE—Enables you to set the print resolution. It is given by the pfcPDFPrintingMode class and takes the following values:
  pfcPDF_PRINTING_LOW_RES—Specifies low resolution for printing.
  pfcPDF_PRINTING_HIGH_RES—Specifies high resolution for printing. This is the default value.
•  pfcPDFOPT_ALLOW_COPYING—If true, allows you to copy content from the PDF document. By default, it is true.
•  pfcPDFOPT_ALLOW_ACCESSIBILITY—If true, enables visually-impaired screen reader devices to extract data independent of the value given by the pfcPDFRestrictOperationsMode class. The default value is true.
•  pfcPDFOPT_PENTABLE—If true, uses the standard Creo pentable to control the line weight, line style, and line color of the exported geometry. The default value is false.
•  pfcPDFOPT_LINECAP—Enables you to control the treatment of the ends of the geometry lines exported to PDF. It is given by the pfcPDFLinecap class and takes the following values:
  pfcPDF_LINECAP_BUTT—Specifies the butt cap square end. This is the default value.
  pfcPDF_LINECAP_ROUND—Specifies the round cap end.
  pfcPDF_LINECAP_PROJECTING_SQUARE—Specifies the projecting square cap end.
•  pfcPDFOPT_LINEJOIN—Enables you to control the treatment of the joined corners of connected lines exported to PDF. It is given by the pfcPDFLinejoin class and takes the following values:
  pfcPDF_LINEJOIN_MITER—Specifies the miter join. This is the default.
  pfcPDF_LINEJOIN_ROUND—Specifies the round join.
  pfcPDF_LINEJOIN_BEVEL—Specifies the bevel join.
•  pfcPDFOPT_SHEETS—Allows you to specify the sheets from a Creo drawing that are to be exported to PDF. It is given by the pfcPrintSheets class and takes the following values:
  pfcPRINT_CURRENT_SHEET—Only the current sheet is exported to PDF
  pfcPRINT_ALL_SHEETS—All the sheets are exported to PDF. This is the default value.
  pfcPRINT_SELECTED_SHEETS—Sheets of a specified range are exported to PDF. If this value is assigned, then the value of the option pfcPDFOPT_SHEET_RANGE must also be known.
•  pfcPDFOPT_SHEET_RANGE—Specifies the range of sheets in a drawing that are to be exported to PDF. If this option is set, then the option pfcPDFOPT_SHEETS must be set to the value pfcPRINT_SELECTED_SHEETS.
•  pfcPDFOPT_EXPORT_MODE—Enables you to select the object to be exported to PDF and the export format. It is given by the pfcPDFExportMode class and takes the following values:
  pfcPDF_2D_DRAWING—Only drawings are exported to PDF. This is the default value.
  pfcPDF_3D_AS_NAMED_VIEWS—3D models are exported as 2D raster images embedded in PDF files.
  pfcPDF_3D_AS_U3D_PDF—3D models are exported as U3D models embedded in one-page PDF files.
  pfcPDF_3D_AS_U3D—A 3D model is exported as a U3D (.u3d) file. This value ignores the options set for the pfcPDFOptionType class.
•  pfcPDFOPT_LIGHT_DEFAULT—Enables you to set the default lighting style used while exporting 3D models in the U3D format to a one-page PDF file, that is when the option pfcPDFOPT_EXPORT_MODE is set to pfcPDF_3D_AS_U3D. The values for this option are given by the pfcPDFU3DLightingMode class.
•  pfcPDFOPT_RENDER_STYLE_DEFAULT—Enables you to set the default rendering style used while exporting Creo models in the U3D format to a one-page PDF file, that is when the option pfcPDFOPT_EXPORT_MODE is set to pfcPDF_3D_AS_U3D. The values for this option are given by the pfcPDFU3DRenderMode class.
•  pfcPDFOPT_SIZE—Allows you to specify the page size of the exported PDF file. The values for this option are given by the pfcPlotPaperSize class. If the value is set to VARIABLESIZEPLOT, you also need to set the options pfcPDFOPT_HEIGHT and pfcPDFOPT_WIDTH.
•  pfcPDFOPT_HEIGHT—Enables you to set the height for a user-defined page size of the exported PDF file. The default value is 0.0.
•  pfcPDFOPT_WIDTH—Enables you to set the width for a user-defined page size of the exported PDF file. The default value is 0.0.
•  pfcPDFOPT_ORIENTATION—Enables you to specify the orientation of the pages in the exported PDF file. It is given by the pfcSheetOrientation class.
  pfcORIENT_PORTRAIT—Exports the pages in portrait orientation. This is the default value.
  pfcORIENT_LANDSCAPE—Exports the pages in landscape orientation.
•  pfcPDFOPT_TOP_MARGIN—Allows you to specify the top margin of the view port. The default value is 0.0.
•  pfcPDFOPT_LEFT_MARGIN—Allows you to specify the left margin of the view port. The default value is 0.0.
•  pfcPDFOPT_BACKGROUND_COLOR_RED—Specifies the default red background color that appears behind the U3D model. You can set any value within the range of 0.0 to 1.0. The default value is 1.0.
•  pfcPDFOPT_BACKGROUND_COLOR_GREEN—Specifies the default green background color that appears behind the U3D model. You can set any value within the range of 0.0 to 1.0. The default value is 1.0.
•  pfcPDFOPT_BACKGROUND_COLOR_BLUE—Specifies the default blue background color that appears behind the U3D model. You can set any value within the range of 0.0 to 1.0. The default value is 1.0.
•  pfcPDFOPT_ADD_VIEWS—If true, allows you to add view definitions to the U3D model from a file. By default, it is true.
•  pfcPDFOPT_VIEW_TO_EXPORT—Specifies the view or views to be exported to the PDF file. It is given by the pfcPDFSelectedViewMode class and takes the following values:
  pfcPDF_VIEW_SELECT_CURRENT—Exports the current graphical area to a one-page PDF file.
  pfcPDF_VIEW_SELECT_ALL—Exports all the views to a multi-page PDF file. Each page contains one view with the view name displayed at the bottom center of the view port.
  pfcPDF_VIEW_SELECT_BY_NAME—Exports the selected view to a one-page PDF file with the view name printed at the bottom center of the view port. If this value is assigned, then the option pfcPDFOPT_SELECTED_VIEW must also be set.
•  pfcPDFOPT_SELECTED_VIEW—Sets the option pfcPDFOPT_VIEW_TO_EXPORT to the value pfcPDF_VIEW_SELECT_BY_NAME, if the corresponding view is successfully found.
•  pfcPDFOPT_PDF_SAVE—Specifies the PDF save options. It is given by the pfcPDFSaveMode class and takes the following values:
  pfcPDF_ARCHIVE_1—Applicable only for the value pfcPDF_2D_DRAWING. Saves the drawings as PDF with the following conditions:
  The value of pfcPDFLayerMode is set to pfcPDF_LAYERS_NONE.
  The value of pfcPDFOPT_HYPERLINKS is set to FALSE.
  The shaded views in the drawings will not have transparency and may overlap other data in the PDF.
  The value of pfcPDFOPT_PASSWORD_TO_OPEN is set to NULL.
  The value of pfcPDFOPT_MASTER_PASSWORD is set to NULL.
  pfcPDF_FULL—Saves the PDF with the values set by you. This is the default value.
Exporting 3D Geometry
Creo Object TOOLKIT C++ allows you to export three dimensional geometry to various formats.
Export Instructions
Methods Introduced:
From Creo Parametric 5.0 F000 onward, the following interfaces along with their methods have been deprecated. Use the method pfcModel::ExportIntf3D instead to export Creo Parametric models to other file formats. All the options that can be set with these interfaces and methods, can also be set using the export profile option in Creo Parametric. Refer to the Creo Parametric Data Exchange Online Help for more information.
•  pfcExport3DInstructions
•  pfcACIS3DExportInstructions
•  pfcCATIAModel3DExportInstructions
•  pfcCATIASession3DExportInstructions
•  pfcCatiaPart3DExportInstructions
•  pfcCatiaProduct3DExportInstructions
•  pfcCatiaCGR3DExportInstructions
•  pfcDXF3DExportInstructions
•  pfcDWG3DExportInstructions
•  pfcIGES3DNewExportInstructions
•  pfcJT3DExportInstructions
•  pfcParaSolid3DExportInstructions
•  pfcSTEP3DExportInstructions
•  pfcSWPart3DExportInstructions
•  pfcSWAsm3DExportInstructions
•  pfcUG3DExportInstructions
•  pfcVDA3DExportInstructions
The method pfcModel::ExportIntf3D exports a Creo Parametric model to the specified output format using the default export profile. The export options must be set using the export profile option in Creo Parametric.
The method pfcBaseSession::ExportProfileLoad loads the specified profile for export. You can use this function when you want to use the export profile of your choice instead of the default export profile in a particular Creo Parametric session. The input argument ProfileFile is the full path to the profile along with the profile name and extension.
Note
Once the export profile file is loaded in a Creo Parametric session, it will be active in the interactive mode as well.
The method pfcTriangulationInstructions::Create creates a object that will be used to define the parameters for faceted exports.
Export Utilities
Methods Introduced:
The method pfcBaseSession::IsConfigurationSupported checks whether the specified assembly configuration is valid for a particular model and the specified export format. The input parameters for this method are:
•  Configuration—Specifies the structure and content of the output files.
•  Type—Specifies the output file type to create.
The method returns a true value if the configuration is supported for the specified export type.
The method pfcBaseSession::IsGeometryRepSupported checks whether the specified geometric representation is valid for a particular export format. The input parameters are :
•  Flags—The type of geometry supported by the export operation.
•  Type—The output file type to create.
The method returns a true value if the geometry combination is valid for the specified model and export type.
The methods pfcBaseSession::IsConfigurationSupported and pfcBaseSession::IsGeometryRepSupported must be called before exporting an assembly to the specified export formats except for the CADDS and STEP2D formats. The return values of both the methods must be true for the export operation to be successful.
Use the methodpfcModel::Export to export the assembly to the specified output format.
Shrinkwrap Export
To improve performance in a large assembly design, you can export lightweight representations of models called shrinkwrap models. A shrinkwrap model is based on the external surfaces of the source part or asssembly model and captures the outer shape of the source model.
You can create the following types of nonassociative exported shrinkwrap models:
•  Surface Subset—This type consists of a subset of the original model’s surfaces.
•  Faceted Solid—This type is a faceted solid representing the original solid.
•  Merged Solid—The external components from the reference assembly model are merged into a single part representing the solid geometry in all collected components.
Methods Introduced:
You can export the specified solid model as a shrinkwrap model using the method pfcSolid::ExportShrinkwrap. This method takes the pfcShrinkwrapExportInstructions object as an argument.
Use the appropriate interface given in the following table to create the required type of shrinkwrap. All the interfaces have their own static method to create an object of the specified type. The object created by these interfaces can be used as an object of type pfcShrinkwrapExportInstructions or pfcShrinkwrapModelExportInstructions.
Type of Shrinkwrap Model
Interface to Use
Surface Subset
pfcShrinkwrapSurfaceSubset
Instructions
Faceted Part
pfcShrinkwrapFacetedPartInstructions
Faceted VRML
pfcShrinkwrapFacetedVRMLInstructions
Faceted STL
pfcShrinkwrapFacetedSTLInstructions
Merged Solid
pfcShrinkwrapMergedSolidInstructions
Setting Shrinkwrap Options
The interface pfcShrinkwrapModelExportInstructions contains the general methods available for all the types of shrinkwrap models. The object created by any of the interfaces specified in the preceeding table can be used with these methods.
Methods Introduced:
The method pfcShrinkwrapModelExportInstructions::GetMethod returns the method used to create the shrinkwrap. The types of shrinkwrap methods are:
•  pfcSWCREATE_SURF_SUBSET—Surface Subset
•  pfcSWCREATE_FACETED_SOLID—Faceted Solid
•  pfcSWCREATE_MERGED_SOLID—Merged Solid
The method pfcShrinkwrapModelExportInstructions::GetQuality specifies the quality level for the system to use when identifying surfaces or components that contribute to the shrinkwrap model. Quality ranges from 1 which produces the coarsest representation of the model in the fastest time, to 10 which produces the most exact representation. Use the method pfcShrinkwrapModelExportInstructions::SetQuality to set the quality level for the system during the shrinkwrap export. The default value is 1.
The method pfcShrinkwrapModelExportInstructions::GetAutoHoleFilling returns true if auto hole filling is enabled during Shrinkwrap export. The method pfcShrinkwrapModelExportInstructions::SetAutoHoleFilling sets a flag that forces Creo application to identify all holes and surfaces that intersect a single surface and fills those holes during shrinkwrap. The default value is true.
The methods pfcShrinkwrapModelExportInstructions::GetIgnoreSkeleton and pfcShrinkwrapModelExportInstructions::SetIgnoreSkeleton determine whether the skeleton model geometry must be included in the shrinkwrap model.
The methods pfcShrinkwrapModelExportInstructions::
GetIgnoreQuilts
and pfcShrinkwrap.ShrinkwrapModelExportInstructions::
SetIgnoreQuilts
determine whether external quilts must be included in the shrinkwrap model.
The method pfcShrinkwrapModelExportInstructions::
GetAssignMassProperties
determines the mass property of the model. The method pfcShrinkwrapModelExportInstructions::
SetAssignMassProperties
assign mass properties to the shrinkwrap model. The default value is false and the mass properties of the original model is assigned to the shrinkwrap model. If the value is set to true, the user must assign a value for the mass properties.
The method pfcShrinkwrapModelExportInstructions::
GetIgnoreSmallSurfaces
specifies whether small surfaces are ignored during the creation of a shrinkwrap model. The method pfcShrinkwrapModelExportInstructions::SetIgnoreSmallSurfaces sets a flag that forces Creo application to skip surfaces smaller than a certain size. The default value is false. The size of the surface is specified as a percentage of the model’s size. This size can be modified using the methods pfcShrinkwrapModelExportInstructions::GetSmallSurfPercentage and pfcShrinkwrapModelExportInstructions::SetSmallSurfPercentage.
The methods pfcShrinkwrapModelExportInstructions::GetDatumReferences and pfcShrinkwrapModelExportInstructions::SetDatumReferences specify and select the datum planes, points, curves, axes, and coordinate system references to be included in the shrinkwrap model.
Surface Subset Options
Methods Introduced:
The static method pfcShrinkwrapSurfaceSubsetInstructions::Create returns an object used to create a shrinkwrap model of surface subset type. Specify the name of the output model in which the shrinkwrap is to be created as an input to this method.
The method pfcShrinkwrapSurfaceSubsetInstructions::
GetAdditionalSurfaces
specifies the surfaces included in the shrinkwrap model while the method pfcShrinkwrapSurfaceSubsetInstructions::SetAdditionalSurfaces selects individual surfaces to be included in the shrinkwrap model.
The method pfcShrinkwrapSurfaceSubsetInstructions::GetOutputModel returns the template model where the shrinkwrap geometry is to be created while the method pfcShrinkwrapSurfaceSubsetInstructions::SetOutputModel sets the template model.
Faceted Solid Options
The pfcShrinkwrapFacetedFormatInstructions interface consists of the following types:
•  pfcSWFACETED_PARTCreo part with normal geometry. This is the default format type.
•  pfcSWFACETED_STL—An STL file.
•  pfcSWFACETED_VRML—A VRML file.
Use the Create method to create the object of the specified type. Upcast the object to use the general methods available in this interface .
Methods Introduced:
The method pfcShrinkwrapFacetedFormatInstructions::GetFormat returns the output file format of the shrinkwrap model.
The methods pfcShrinkwrapFacetedFormatInstructions::GetFramesFile and pfcShrinkwrapFacetedFormatInstructions::SetFramesFile enable you to select a frame file to create a faceted solid motion envelope model that represents the full motion of the mechanism captured in the frame file. Specify the name and complete path of the frame file.
Faceted Part Options
Methods Introduced:
The static method pfcShrinkwrapFacetedPartInstructions::Create returns an object used to create a shrinkwrap model of shrinkwrap faceted type. The input parameters of this method are:
•  OutputModel—Specify the output model where the shrinkwrap must be created.
•  Lightweight—Specify this value as True if the shrinkwrap model is a Lightweight Creo part.
The method pfcShrinkwrapFacetedPartInstructions::GetLightweight returns a true value if the output file format of the shrinkwrap model is a LightweightCreo part. The method pfcShrinkwrapFacetedPartInstructions::SetLightweight specifies if theCreo part is exported as a light weight faceted geometry.
VRML Export Options
Methods Introduced:
The static method pfcShrinkwrapVRMLInstructions::Create returns an object used to create a shrinkwrap model of shrinkwrap VRML format. Specify the name of the output model as an input to this method.
The method pfcShrinkwrapVRMLInstructions::GetOutputFile returns the name of the output file to be created and the method pfcShrinkwrapVRMLInstructions::SetOutputFile specifies the name of the output file to be created.
STL Export Options
Methods Introduced:
The static method pfcShrinkwrapVRMLInstructions::Create returns an object used to create a shrinkwrap model of shrinkwrap STL format. Specify the name of the output model as an input to this method.
The method pfcShrinkwrapSTLInstructions::GetOutputFile returns the name of the output file to be created and the method pfcShrinkwrapSTLInstructions::SetOutputFile specifies the name of the output file to be created.
Merged Solid Options
Methods Introduced:
The static method pfcShrinkwrapMergedSolidInstructions::Create returns an object used to create a shrinkwrap model of merged solids format. Specify the name of the output model as an input to this method.
The methods pfcShrinkwrapMergedSolidInstructions::
GetAdditionalComponents
specifies individual components of the assembly to be merged into the shrinkwrap model. Use the method pfcShrinkwrapMergedSolidInstructions::
SetAdditionalComponents
to select individual components of the assembly to be merged into the shrinkwrap model.
Importing Files
Method Introduced:
The method pfcModel::Import reads a file into Creo. The format must be the same as it would be if these files were created by Creo. The parameters are:
•  FilePath—Absolute path of the file to be imported along with its extension.
•  ImportData—The pfcImportInstructions object that controls the import operation.
Import Instructions
Methods Introduced:
The methods described in this section create an instructions data object to import a file of a specified type into Creo application. The details are as shown in the table below:
Interface
Used to Import
pfcRelationImportInstructions
A list of relations and parameters in a part or assembly.
pfcIGESSectionImportInstructions
A section model in IGES format.
pfcProgramImportInstructions
A program file for a part or assembly that can be edited to change the model.
pfcConfigImportInstructions
Configuration instructions.
pfcDWGSetupImportInstructions
A drawing s/u file.
pfcSpoolImportInstructions
Spool instructions.
pfcConnectorParamsImportInstructions
Connector parameter instructions.
pfcASSEMTreeCFGImportInstructions
Assembly tree CFG instructions.
pfcWireListImportInstructions
Wirelist instructions.
pfcCableParamsImportInstructions
Cable parameters from an assembly.
pfcSTEPImport2DInstructions
A part or assembly in STEP format.
pfcIGESImport2DInstructions
A part or assembly in IGES format.
pfcDXFImport2DInstructions
A drawing in DXF format.
pfcDWGImport2DInstructions
A drawing in DWG format.
Note
•  The method pfcModel::Import does not support importing of CADAM type of files.
•  If a model or the file type STEP, IGES, DWX, or SET already exists, the imported model is appended to the current model. For more information on methods that return models of the types STEP, IGES, DWX, and SET, refer to Getting a Model Object.
Importing 2D Models
Method Introduced:
The method pfcBaseSession::Import2DModel imports a two dimensional model based on the following parameters:
•  NewModelName—Specifies the name of the new model.
•  Type—Specifies the type of the model. The type can be one of the following:
  STEP
  IGES
  DXF
  DWG
  SET
•  FilePath—Specifies the location of the file to be imported along with the file extension
•  Instructions—Specifies the pfcImport2DInstructions object that controls the import operation.
The interface pfcpfcImport2DInstructions contains the following attributes:
  Import2DViews—Defines whether to import 2D drawing views.
  ScaleToFit—If the current model has a different sheet size than that specified by the imported file, set the parameter to true to retain the current sheet size. Set the parameter to false to retain the sheet size of the imported file.
  FitToLeftCorner—If this parameter is set to true, the bottom left corner of the imported file is adjusted to the bottom left corner of the current model. If it is set to false, the size of imported file is retained.
Note
The method pfcBaseSession::Import2DModel does not support importing of CADAM type of files.
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—Specifies the path of the file along with its name and extension.
•  NewModelImportType—Specifies the 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—Specifies the path to the file along with its name and extension
•  pfcNewModelImportType—Specifies the type of model to be imported. The types of models that can be imported are as follows:
  pfcIMPORT_NEW_IGES
  pfcIMPORT_NEW_VDA
  pfcIMPORT_NEW_NEUTRAL
  pfcIMPORT_NEW_CADDS
  pfcIMPORT_NEW_STEP
  pfcIMPORT_NEW_STL
  pfcIMPORT_NEW_VRML
  pfcIMPORT_NEW_POLTXT
  pfcIMPORT_NEW_CATIA_SESSION
  pfcIMPORT_NEW_CATIA_MODEL
  pfcIMPORT_NEW_DXF
  pfcIMPORT_NEW_ACIS
  pfcIMPORT_NEW_PARASOLID
  pfcIMPORT_NEW_ICEM
  pfcIMPORT_NEW_CATIA_PART
  pfcIMPORT_NEW_CATIA_PRODUCT
  pfcIMPORT_NEW_UG
  pfcIMPORT_NEW_PRODUCTVIEW
  pfcIMPORT_NEW_CATIA_CGR
  pfcIMPORT_NEW_JT
  pfcIMPORT_NEW_SW_PART
  pfcIMPORT_NEW_SW_ASSEM
  pfcIMPORT_NEW_INVENTOR_PART
  pfcIMPORT_NEW_INVENTOR_ASSEM
  pfcIMPORT_NEW_CC
  pfcIMPORT_NEW_SEDGE_PART
  pfcIMPORT_NEW_SEDGE_ASSEMBLY
  pfcIMPORT_NEW_SEDGE_SHEETMETAL_PART
  pfcIMPORT_NEW_3MF
•  pfcModelType—Specifies the type of the model. It can be a part, assembly or drawing.
•  NewModelName—Specifies a name for the imported model.
•  pfcLayerImportFilter—Specifies the layer filter. This parameter is optional.
The interface pfcLayerImportFilter has a call back method pfcLayerImportFilter::OnLayerImport. Creo application passes the object pfcImportedLayer describing each imported layer to the layer filter to allow you to perform changes on each layer as it is imported.
The method pfcXCancelProEAction::Throw can be called from the body of the method pfcLayerImportFilter::OnLayerImport to end the filtering of the layers.
Modifying the Imported Layers
Layers help you organize model items so that you can perform operations on those items collectively. These operations primarily include ways of showing the items in the model, such as displaying or blanking, selecting, and suppressing. The methods described in this section modify the attributes of the imported layers.
Methods Introduced:
Layers are identified by their names. The method pfcImportedLayer::GetName returns the name of the layer while the method pfcImportedLayer::SetNewName can be used to set the name of the layer. The name can be numeric or alphanumeric.
The method pfcImportedLayer::GetSurfaceCount returns the number of curves on the layer.
The method pfcImportedLayer::GetTrimmedSurfaceCount returns the number of trimmed surfaces on the layer and the method pfcImportedLayer::GetCurveCount returns the number of curves on the layer.
The method pfcImportedLayer::SetAction sets the display of the imported layers. The input parameter for this method is ImportAction. The types of actions that can be performed on the imported layers are:
•  pfcIMPORT_LAYER_DISPLAY—Displays the imported layer.
•  pfcIMPORT_LAYER_SKIP—Does not import entities on this layer.
•  pfcIMPORT_LAYER_BLANK—Blanks the selected layer.
•  pfcIMPORT_LAYER_IGNORE—Imports only entities on this layer but not the layer.
The default action type is pfcIMPORT_LAYER_DISPLAY.
Import Feature Properties
The methods defined in this section get the properties of the import feature.
Methods Introduced:
The method wfcWFeature::GetIdMap returns an array that contains the mapping between user defined IDs and the IDs assigned by Creo application to the entity items in the import feature.
The method wfcWFeature::GetUserIds converts a Creo item ID to an array of user defined IDs. For example, if the edges defined by you are created as a single edge by Creo application and are assigned a single item ID. When you pass this single item ID assigned by Creo application to the method wfcWFeature::GetUserIds, it will return an array of user IDs against each edge defined. The input parameters are:
•  ItemId—Specifies the ID assigned by Creo application for the geometry item.
•  ItemType—Specifies the type of geometry item. The following types are supported:
  Surface (pfcITEM_SURFACE)
  Edge (pfcITEM_EDGE)
  Quilt (pfcITEM_QUILT)
Use the method wfcWFeature::GetItemIds to get the IDs assigned by Creo application for the specified user ID. The input parameters are:
•  UserId—Specifies the user ID for the geometry item.
•  ItemType—Specifies the type of geometry item. The following types are supported:
  Surface (pfcITEM_SURFACE)
  Edge (pfcITEM_EDGE)
  Quilt (pfcITEM_QUILT)
The methods wfcImportFeatureIdMap::GetItemId and wfcImportFeatureIdMap::SetItemId retrieve and set the item id of an import feature id map.
The methods wfcImportFeatureIdMap::GetItemType and wfcImportFeatureIdMap::SetItemType retrieve and set item type of the import feature id map using the enumerated type pfcModelItemType.
The methods wfcImportFeatureIdMap::GetUserId and wfcImportFeatureIdMap::GetUserId retrieve and set the id or ids assigned by Creo Parametric.
The method wfcWFeature::GetImportFeatureData returns information about the parameters assigned to the specified import feature as a wfcImportFeatureData object.
The method wfcImportFeatureData::GetIntfType returns the file format type of the specified import feature.
The method wfcImportFeatureData::GetFileName returns the name of the file from which the import feature was created.
The method wfcImportFeatureData::GetCsys returns the coordinate system with respect to which the import feature is aligned.
The method wfcImportFeatureData::GetAttributes returns the attributes assigned to the import feature as a wfcImportFeatAttributes object.
Import Feature Attributes
Attributes define the action to be taken when creating the import feature.
Methods Introduced:
The method wfcImportFeatAttributes::Create creates a data object that contains information about the attributes of the import feature.
The method wfcImportFeatAttributes::MakeSolid returns a boolean value that indicates if the import feature was created as a solid or a surface type. Use the method wfcImportFeatAttributes::SetSolid to specify whether the import feature must be created as a solid or a surface type. You must specify True to create the import feature as solid and False to create it as a surface.
Note
If the import feature is an open surface, you cannot create the import feature of solid type even if you set the boolean value to the method wfcImportFeatAttributes::SetSolid to True.
The method wfcImportFeatAttributes::IsAdded returns a boolean value that indicates if the import feature is created as a cut or a protrusion. You can create the import feature as a cut or protrusion only if the import feature is of solid type. Use the method wfcImportFeatAttributes::SetAdded to specify if the import feature must be created as a cut or protrusion. Specify True to create as a cut and false to create as a protrusion.
The method wfcImportFeatAttributes::AreSurfacesJoined returns a boolean value that indicates if the import feature is created as a single quilt (joined surface) or separate surfaces (as it was in the original file). You can create the import feature as single quilt or separate surfaces only when the import feature is of surface type. Use the method wfcImportFeatAttributes::SetSurfacesJoined to specify if the import feature must be created as a single quilt or separate surfaces. You must specify True to create as single quilt and false to create as separate surfaces.
Use the methods wfcImportFeatAttributes::GetAddBodies and wfcImportFeatAttributes::SetAddBodies to retrieve and set the option for creating the same body structure as is present in the source file.
The methods wfcImportFeatAttributes::GetBodyUseOpts and wfcImportFeatAttributes::SetBodyUseOpts retrieve and specifies the body options you can use while importing a feature and is defined by the enumerated data type wfcImportBodyUseOpts. The valid values are:
•  wfcIMPORT_BODY_USE_DEFAULT—Imports feature in the default body.
•  wfcIMPORT_BODY_USE_NEW—Imports feature in a new body.
•  wfcIMPORT_BODY_USE_ALL—Currently not supported.
•  wfcIMPORT_BODY_USE_SELECTED—Imports feature in a selected body.
The methods wfcImportFeatAttributes::GetBodyArray and wfcImportFeatAttributes::SetBodyArray get and set the array of bodies to be selected. By default, the size is 1. You must not call the method wfcImportFeatAttributes::SetBodyArray if you do not want to use any bodies in the import operation.
Redefining the Import Feature
The methods defined in this section allow you to redefine the import feature.
Methods Introduced:
The method wfcWFeature::RedefineImportFeature redefines the import feature. The input argument Source contains the data about the source files and operation type to be used for redefinition of import feature as a wfcImportFeatureRedefSource object.
Use the method wfcImportFeatureRedefSource::GetRedefOperationType to get the operation type for the redefinition of the import feature as an enumerated data type wfcImportFeatRedefOperationType. The types of operation are:
•  wfcIMPORT_FEAT_REDEF_CHANGE_ATTR—Specifies if the attributes of the existing import feature must be changed.
•  wfcIMPORT_FEAT_REDEF_SUBSTITUTE—Specifies if the existing import feature is substituted with a new import feature.
The method wfcWSession::GetImportFeatRedefSourceType determines the type of data source that must be passed as input for redefining the import feature. The type of data source depends on the type of operation. The data source can be of following types:
•  wfcIMPORT_FEAT_REDEF_DATA_SOURCE_NONE—Specifies that the existing data source must be reloaded.
•  wfcIMPORT_FEAT_REDEF_DATA_SOURCE_ATTR—Specifies that the data source must contain information about the attributes of the import feature.
•  wfcIMPORT_FEAT_REDEF_DATA_SOURCE_NEW—Specifies that the data source must contain information about the new part model to be imported into Creo application.
Extracting Geometry as Interface Data
The methods defined in this section allow you to extract interface data from Creo geometry. You can use this data to create the import feature.
Methods Introduced:
The method wfcWPart::GetInterfaceData extracts information about the geometry of a part as a wfcInterfaceData object. The interface data can be used to extract all geometric data in order to convert it to another geometric format. Pass the information about the curves, edges, and surfaces of a part as an object of type wfcConversionOptions.
The method wfcConversionOptions::Create creates a data object of type wfcConversionOptions that contains information about the curves, edges, and surfaces of a part.
The method wfcConversionOptions::GetEdgeRepresentation gets the information about the representation of edges in a part as a wfcEdgeRepresentation object. Use the method wfcConversionOptions::SetEdgeRepresentation to set the parameters for the representation of edges in a part.
The method wfcEdgeRepresentation::Create creates a data object that contains information about the representation of edges in a part. The parameters of this method are:
•  UVPoints—Specifies the representation of the edge using UV points. Use the methods wfcEdgeRepresentation::GetUVPoints and wfcEdgeRepresentation::SetUVPoints to get and set the UV points on the surface for edge representation.
•  UVCurves—Specifies the representation of the edge using UV curves. Use the methods wfcEdgeRepresentation::GetUVCurves and wfcEdgeRepresentation::SetUVCurves to get and set the edge UV curves on the surface for edge representation.
•  XYZCurves—Specifies the representation of the edge using XYZ curves. Use the methods wfcEdgeRepresentation::GetXYZCurves and wfcEdgeRepresentation::SetXYZCurves to get and set the XYZ curves on the surface for edge representation.
The method wfcConversionOptions::GetCurveConversionOption returns the conversion option set for curves during the data exchange. Use the method wfcConversionOptions::SetCurveConversionOption to set the curve conversion option.
The method wfcConversionOptions::GetSurfaceConversionOption returns the conversion option set for surfaces during the data exchange. Use the method wfcConversionOptions::SetSurfaceConversionOption to set the surface conversion option.
The method wfcInterfaceData::Create creates a data object that contains the interface data.
The method wfcInterfaceData::GetSurfaceData returns an array of surface data for the specified interface data. Use the method wfcInterfaceData::SetSurfaceData to set the surface data for a part import.
The method wfcInterfaceData::GetEdgeDescriptor returns an array of edge data for the specified interface data. Use the method wfcInterfaceData::SetEdgeDescriptor to set the edge data for a part import.
The method wfcInterfaceData::GetQuiltData returns an array of quilt data for the specified interface data. Use the method wfcInterfaceData::SetQuiltData to set the quilt data for a part import.
The method wfcInterfaceData::GetDatumData returns an array of datum data for the specified interface data. Use the method wfcInterfaceData::SetDatumData to set the datum data for a part import.
The method wfcInterfaceData::GetAccuracytype gets the type of accuracy for the interface data using the enumerated type wfcAccuracytype. Use the method wfcInterfaceData::SetAccuracytype to set the type of accuracy. The valid values are:
•  wfcACCU_RELATIVE—Specifies the comparative ratio of the smallest model dimension to the part size. Creo application can display geometry equal to or greater than the ratio without any error. This is the default accuracy type in a model.
•  wfcACCU_ABSOLUTE—Specifies the absolute accuracy of a model that defines the smallest allowable size of the unit that Creo application can display or interpret without any error.
The method wfcInterfaceData::GetAccuracy returns the value of the accuracy for the specified model. Use the method wfcInterfaceData::SetAccuracy to set the accuracy for the specified model.
The method wfcInterfaceData::GetOutline returns the maximum and minimum values of x, y, and z coordinates for the display outline of the bounding box that contains the interface data. Use the method wfcInterfaceData::SetOutline to set the display outline for the bounding box to contain the interface data.
The method wfcWSession::GetDataSourceType returns the type of the interface source data in session using the enumerated type wfcIntfDataSourceType. The valid values are:
•  wfcINTF_DATA_SOURCE_FILE—Specifies that the data source is from a file.
•  wfcINTF_DATA_SOURCE_MEMORY—Specifies that the data source is of neutral type.
Extracting Interface Data for Neutral Files
The methods defined in this section allow you to extract interface data for neutral data files. You can use this data to create an import feature.
Methods Introduced:
The method wfcWIntfNeutral::Create creates a data object of type wfcWIntfNeutral that contains information about the interface data for the neutral file type. The input parameters for this method are:
•  FileName—Specifes the name of the neutral file.
•  Data—Specifies the interface data for the specified neutral file as an object of type wfcInterfaceData. Use the method wfcWIntfNeutral::SetInterfaceData to set the interface data for the specified neutral file. The method wfcWIntfNeutral::GetInterfaceData gets the interface data for the specified neutral file. Refer to the section Extracting Geometry as Interface Data, for more information on interface data object wfcInterfaceData.
Associative Topology Bus Enabled Models and Features
Associative Topology Bus (ATB) propagates changes made to the original CAD system data in the heterogeneous design environment. All geometric IDs preserved by the native system after the change to the native file are also preserved in the imported geometry by the ATB update. With ATB, you can work with Creo part or assembly that is:
•  A Translated Image Model (TIM) representation of a model imported from the ATB interface, such as, CADDS or CATIA.
•  A Creo assembly containing one or more components which are models imported from an ATB interface, such as, CADDS or CATIA.
•  ACreo part containing an Import feature that is imported from an ATB interface such as, ICEM.
Only import operations in Creo application create TIM parts and assemblies. You can open CATIA, CADDS model files as TIMs. Neutral part files and files of other ATB-enabled formats are imported as native Creo parts with ATB-enabled features.
The TIM parts and assemblies store their ATB information at the model level. However, ATB-enabled import features store ATB information at the feature-level. The TIMs are displayed in the Model Tree with ATB icons that indicate their status with respect to their reference file as up-to-date, out-of-date, and so on.
These methods related to ATB models or features enable you to perform the following actions on a TIM model or ATB-enabled feature or the entire geometry of the imported model:
•  Check the status of the TIMs or the ATB-enabled features.
•  Update TIMs or ATB-enabled features that are identified as out-of-date.
•  Change the link of a TIM or ATB-enabled feature.
•  Break the association between a TIM or the ATB-enabled feature and the original reference model.
Methods Introduced:
The method wfcWModel::GetTIMInfo returns information about TIM in the specified model as a wfcTIMInfo object.
The method wfcTIMInfo::IsModelTIM checks if the specified model is a TIM.
The method wfcTIMInfo::ModelHasTIMFeats checks if the specified model contains a TIM feature.
The method wfcTIMInfo::FeatIds lists all the TIMs or ATB-enabled features present in the specified model. This method can be called after the method wfcTIMInfo::ModelHasTIMFeats which determines if the specified model has one or more TIM features.
The method wfcWModel::VerifyATB verifies if the specified ATB model is out of date with the source CAD model. The method first checks if the specified model is a TIM. If the model is not a TIM, this method checks if the ATB-enabled model was created by importing or appending ICEM or neutral surfaces to existingCreo part models. The method wfcWModel::VerifyATB returns the wfcATBVerificationResults object that represents the status of the TIMs.
You can specify a Creo part or assembly that is—
•  A Translated Image Model (TIM) representation of a model imported from the ATB interface, such as, CADDS or CATIA.
•  A Creo assembly containing one or more components which are models imported from an ATB Interface, such as, CADDS or CATIA.
•  A Creo part containing an Import feature that is imported from an ATB interface such as, ICEM.
The input parameters for this method are:
•  FeatIds—Specify an array of feature ids for the ATB-enabled features in the model. If a model contains more than one ATB-enabled feature, the verify method works only on the specified feature. If you do not specify a feature id, the method wfcWModel::VerifyATB verifies the entire model including TIMs from non-native CAD models.
•  SearchPaths—Specify the complete location to the source CAD model. You can specify multiple directories to search for the model. If no search path is specified, then the method will search in current working directory or locations set in the configuration option atb_search_path.
Use the method wfcATBVerificationResults::GetOutOfDateModels to get an array of TIMs or the ATB-enabled features that are out-of-date with the source model and require an update. These TIMs or the ATB-enabled features can be relinked. Such models are represented by a red icon in the Model Tree in the Creo user interface.
Use the method wfcATBVerificationResults::GetUnlinkedModels to get an array of TIMs or the ATB-enabled features that have missing links because the reference model is missing from the designated search path. These models are represented by a yellow icon in the Model Tree in the Creo user interface.
Use the method wfcATBVerificationResults::GetOldVersionModels to get an array of TIMs for which the source CAD model is older than the one with which the TIM was last updated. These models are represented by a yellow icon in the Model Tree in the Creo user interface.
The method wfcWModel::MarkATBModelAsOutOfDate identifies all the ATB-enabled features that are out of date for the update operation.
The method wfcWModel::UpdateATB updates the ATB-enabled models or features that are displayed in the session. The update action synchronizes the derived structure and the contents of the TIMs with the primary structure and the content of the source non-native CAD models. This method returns an error if there are non-displayed models in the session or if the input model is not displayed.
Note
•  If the link of a TIM or ATB-enabled feature is broken, you cannot re-establish the link or update the part that is independent and has lost its association with the reference model.
•  The geometry added or removed from the model before the update is added or removed from the TIM after the update.
•  ATB incorrectly identifies the imported geometry as up-to-date based on the old reference file which is found before the updated reference file.
The method wfcWModel::RelinkATB relinks a TIM to a source CAD model specified by the input argument MasterModelPath. This method relinks all those models or features that have lost their association or link with their master model. In order to relink a model, provide the name and location of the master model, using MasterModelPath to which the specified model or feature is to be linked. If the master model with the same name is found, the Creo TIM model is linked to that master model.
Printing Files
The printer instructions for printing a file are defined in pfcPrinterInstructions data object.
Methods Introduced:
The method pfcPrinterInstructions::Create creates a new instance of the pfcPrinterInstructions object. The object contains the following instruction attributes:
•  PrinterOption—Specifies the printer settings for printing a file in terms of the pfcPrintPrinterOption object. Set this attribute using the method pfcPrinterInstructions::SetPrinterOption.
•  PlacementOption—Specifies the placement options for printing purpose in terms of the pfcPrintMdlOption object. Set this attribute using the method pfcPrinterInstructions::SetPlacementOption.
•  ModelOption—Specifies the model options for printing purpose in terms of the pfcPrintPlacementOption object. Set this attribute using the method pfcPrinterInstructions::SetModelOption.
•  WindowId—Specifies the current window identifier. Set this attribute using the method pfcPrinterInstructions::SetWindowId.
Printer Options
The printer settings for printing a file are defined in the pfcPrintPrinterOption object.
Methods Introduced:
The method pfcPrintPrinterOption::Create creates a new instance of the pfcPrintPrinterOption object.
The method pfcBaseSession::GetPrintPrinterOptions retrieves the printer settings.
The pfcPrintPrinterOption object contains the following options:
•  DeleteAfter—Determines if the file is deleted after printing. Set it to true to delete the file after printing. Use the method pfcPrintPrinterOption::SetDeleteAfter to assign this option.
•  FileName—Specifies the name of the file to be printed. Use the method pfcPrintPrinterOption::SetFileName to set the name.
Note
If the method pfcModel::Export is called for pfcExportType object, then the argument FileName is ignored, and can be passed as NULL. You must use the method pfcModel::Export to set the FileName.
•  PaperSize—Specifies the parameters of the paper to be printed in terms of the pfcPrintSize object. The method pfcPrintPrinterOption::SetPaperSize assigns the PaperSize option. Use the method pfcPrintSize::Create to create a new instance of the pfcPrintSize object. This object contains the following options:
  Height—Specifies the height of paper. Use the method pfcPrintSize::SetHeight to set the paper height.
  Width—Specifies the width of paper. Use the method pfcPrintSize::SetWidth to set the paper width.
  PaperSize—Specifies the size of the paper used for the plot in terms of the pfcPlotPaperSize object. Use the method pfcPrintSize::SetPaperSize to set the paper size.
Note
If you want to plot a layout without adding a border on the paper, use the following paper sizes defined in the enumerated data type pfcPlotPaperSize:
  CEEMPTYPLOT—The paper size is 22.5 x 36 in
  CEEMPTYPLOT_MM—The paper size is 625 x 1000 mm
•  PenTable—Specifies the file containing the pen table. Use the method pfcPrintPrinterOption::SetPenTable to set this option.
•  PrintCommand—Specifies the command to be used for printing. Use the method pfcPrintPrinterOption::SetPrintCommand to set the command.
•  PrinterType—Specifies the printer type. Use the method pfcPrintPrinterOption::SetPrinterType to assign the type.
•  Quantity—Specifies the number of copies to be printed. Use the method pfcPrintPrinterOption::SetQuantity to assign the quantity.
•  RollMedia—Determines if roll media is to be used for printing. Set it to true to use roll media. Use the method pfcPrintPrinterOption::SetRollMedia to assign this option.
•  RotatePlot—Determines if the plot is rotated by 90 degrees. Set it to true to rotate the plot. Use the method pfcPrintPrinterOption::SetRotatePlot to set this option.
•  SaveMethod—Specifies the save method in terms of the pfcPrintSaveMethod class. Use the method pfcPrintPrinterOption::SetSaveMethod to specify the save method. The available methods are as follows:
  pfcPRINT_SAVE_SINGLE_FILE—Plot is saved to a single file.
  pfcPRINT_SAVE_MULTIPLE_FILE—Plot is saved to multiple files.
  pfcPRINT_SAVE_APPEND_TO_FILE—Plot is appended to a file.
•  SaveToFile—Determines if the file is saved after printing. Set it to true to save the file after printing. Use the method pfcPrintPrinterOption::SetSaveToFile to assign this option.
•  SendToPrinter—Determines if the plot is directly sent to the printer. Set it to true to send the plot to the printer. Use the method pfcPrintPrinterOption::SetSendToPrinter to set this option.
•  Slew—Specifies the speed of the pen in centimeters per second in X and Y direction. Use the method pfcPrintPrinterOption::SetSlew to set this option.
•  SwHandshake—Determines if the software handshake method is to be used for printing. Set it to true to use the software handshake method. Use the method pfcPrintPrinterOption::SetSwHandshake to set this option.
•  UseTtf—Specifies whether TrueType fonts or stroked text is used for printing. Set this option to true to use TrueType fonts and to false to stroke all text. Use the method pfcPrintPrinterOption::SetUseTtf to set this option.
Placement Options
The placement options for printing purpose are defined in the pfcPrintPlacementOption object.
Methods Introduced:
The method pfcPrintPlacementOption::Create creates a new instance of the pfcPrintPlacementOption object.
The method pfcBaseSession::GetPrintPlacementOptions retrieves the placement options.
The pfcPrintPlacementOption object contains the following options:
•  BottomOffset—Specifies the offset from the lower-left corner of the plot. Use the method pfcPrintPlacementOption::SetBottomOffset to set this option.
•  ClipPlot—Specifies whether the plot is clipped. Set this option to true to clip the plot or to false to avoid clipping of plot. Use the method pfcPrintPlacementOption::SetClipPlot to set this option.
•  KeepPanzoom—Determines whether pan and zoom values of the window are used. Set this option to true use pan and zoom and false to skip them. Use the method pfcPrintPlacementOption::SetKeepPanzoom to set this option.
•  LabelHeight—Specifies the height of the label in inches. Use the method pfcPrintPlacementOption::SetLabelHeight to set this option.
•  PlaceLabel—Specifies whether you want to place the label on the plot. Use the method pfcPrintPlacementOption::SetPlaceLabel to set this option.
•  Scale—Specifies the scale used for the plot. Use the method pfcPrintPlacementOption::SetScale to set this option.
•  ShiftAllCorner—Determines whether all corners are shifted. Set this option to true to shift all corners or to false to skip shifting of corners. Use the method pfcPrintPlacementOption::SetShiftAllCorner to set this option.
•  SideOffset—Specifies the offset from the sides. Use the method pfcPrintPlacementOption::SetSideOffset to set this option.
•  X1ClipPosition—Specifies the first X parameter for defining the clip position. Use the method pfcPrintPlacementOption::SetX1ClipPosition to set this option.
•  X2ClipPosition—Specifies the second X parameter for defining the clip position. Use the method pfcPrintPlacementOption::SetX2ClipPosition to set this option.
•  Y1ClipPosition—Specifies the first Y parameter for defining the clip position. Use the method pfcPrintPlacementOption::SetY1ClipPosition to set this option.
•  Y2ClipPosition—Specifies the second Y parameter for defining the clip position. Use the method pfcPrintPlacementOption::SetY2ClipPosition to set this option.
Model Options
The model options for printing purpose are defined in the pfcPrintMdlOption object.
Methods Introduced:
The method pfcPrintMdlOption::Create creates a new instance of the pfcPrintMdlOption object.
The method pfcBaseSession::GetPrintMdlOptions retrieves the model options.
The pfcPrintMdlOption object contains the following options:
•  DrawFormat—Displays the drawing format used for printing. Use the method pfcPrintMdlOption::SetDrawFormat to set this option.
•  FirstPage—Specifies the first page number. Use the method pfcPrintMdlOption::SetFirstPage to set this option.
•  LastPage—Specifies the last page number. Use the method pfcPrintMdlOption::SetLastPage to set this option.
•  LayerName—Specifies the name of the layer. Use the method pfcPrintMdlOption::SetLayerName to set the name.
•  LayerOnly—Prints the specified layer only. Set this option to true to print the specified layer. Use the method pfcPrintMdlOption::SetLayerOnly to set this option.
•  Mdl—Specifies the model to be printed. Use the method pfcPrintMdlOption::SetMdl to set this option.
•  Quality—Determines the quality of the model to be printed. It checks for no line, no overlap, simple overlap, and complex overlap. Use the pfcPrintMdlOption::SetQuality to set this option.
•  Segmented—If set to true, the printer prints the drawing in full size, but in segments that are compatible with the selected paper size. This option is available only if you are plotting a single page. Use the method pfcPrintMdlOption::SetSegmented to set this option.
•  Sheets—Specifies the sheets that need to be printed in terms of the pfcPrintSheets class. Use the method pfcPrintMdlOption::SetSheets to specify the sheets. The sheets can be of the following types:
  pfcPRINT_CURRENT_SHEET—Only the current sheet is printed.
  pfcPRINT_ALL_SHEETS—All the sheets are printed.
  pfcPRINT_SELECTED_SHEETS—Sheets of a specified range are printed.
•  UseDrawingSize—Overrides the paper size specified in the printer options with the drawing size. Set this option to true to use the drawing size. Use the method pfcPrintMdlOption::SetUseDrawingSize to set this option.
•  UseSolidScale—Prints with the scale used in the solid model. Set this option to true to use solid scale. Use the method pfcPrintMdlOption::SetUseSolidScale to set this option.
Plotter Configuration File (PCF) Options
The printing options for PCF file are defined in the pfcPrinterPCFOptions object.
Methods Introduced:
The method pfcPrinterPCFOptions::Create creates a new instance of the pfcPrinterPCFOptions object.
The pfcPrinterPCFOptions object contains the following options:
•  PrinterOption—Specifies the printer settings for printing a file in terms of the pfcPrintPrinterOption object. Set this attribute using the method pfcPrinterPCFOptions::SetPrinterOption.
•  PlacementOption—Specifies the placement options for printing purpose in terms of the pfcPrintMdlOption object. Set this attribute using the method pfcPrinterPCFOptions::SetPlacementOption.
•  ModelOption—Specifies the model options for printing purpose in terms of the pfcPrintPlacementOption object. Set this attribute using the method pfcPrinterPCFOptions::SetModelOption.
Automatic Printing of 3D Models
Creo Object TOOLKIT C++ provides the capability of automatically creating and plotting a drawing of a solid model. The Creo Object TOOLKIT C++ application needs only to supply instructions for the print activity, and Creo application will automatically create the drawing, print it, and then discard it.
The methods listed here are analogous to the command File  Print  Quick Drawing in Creo Parametric user interface.
Method Introduced:
The method wfcQuickPrintGeneralViewInsructions::Create creates a new instance of the wfcQuickPrintGeneralViewInsructions object that contains the quick drawing print instructions for general view.
The methods wfcQuickPrintGeneralViewInsructions::GetGeneralViewLocation and wfcQuickPrintGeneralViewInsructions::SetGeneralViewLocation get and set the location of the view being added for projected view layout. This option is ignored for a manual view layout. You can set the view location using the enumerated type wfcQuickPrintGeneralViewLocation:
•  wfcQPRINT_PROJ_GENVIEW_MAIN
•  wfcQPRINT_PROJ_GENVIEW_NW
•  wfcQPRINT_PROJ_GENVIEW_SW
•  wfcQPRINT_PROJ_GENVIEW_SE
•  wfcQPRINT_PROJ_GENVIEW_NE
Note
The general view location options are analogous to the images in the Quick Drawing dialog box under View Layout.
The methods wfcQuickPrintGeneralViewInsructions::GetScale and wfcQuickPrintGeneralViewInsructions::SetScale get and set the view scale.
The methods wfcQuickPrintGeneralViewInsructions::GetViewDisplayStyle and wfcQuickPrintGeneralViewInsructions::SetViewDisplayStyle get and set the display styles being used in a view using the object wfcDrawingViewDisplay For more information on view display styles, refer to section Drawing View Display Information.
The methods wfcQuickPrintGeneralViewInsructions::GetViewName and wfcQuickPrintGeneralViewInsructions::SetViewName get and set the saved view name.
The method wfcQuickPrintInstructions::Create creates a new instance of the wfcQuickPrintInstructions object that contains the quick drawing print instructions.
The methods wfcQuickPrintInstructions::GetDrawingTemplate and wfcQuickPrintInstructions::SetDrawingTemplate get and set the path to the drawing template file to be used for the quick drawing print operation. The methods are applicable only to views with layout type wfcQPRINT_LAYOUT_TEMPLATE.
The methods wfcQuickPrintInstructions::GetGeneralViewInstructions and wfcQuickPrintInstructions::SetGeneralViewInstructions get and set the quick drawing print instructions for general view using the object wfcQuickPrintGeneralViewInsructions.
Use the methods wfcQuickPrintInstructions::GetLayoutType and wfcQuickPrintInstructions::SetLayoutType to get and set the layout type for print operation. You can set the layout type using the enumerated type wfcQuickPrintLayoutType:
•  wfcQPRINT_LAYOUT_PROJ—Specifies a projected view-type layout.
•  wfcQPRINT_LAYOUT_MANUAL—Specifies a manually arranged layout.
•  wfcQPRINT_LAYOUT_TEMPLATE—Specifies the use of a drawing template to define the layout. If this option is specified, only the template name is required to define the print; other options are not used.
The methods wfcQuickPrintInstructions::GetManualLayoutType and wfcQuickPrintInstructions::SetManualLayoutType get and set the layout type when three views are being used in a manual layout. These methods are applicable only to views with layout type wfcQPRINT_LAYOUT_MANUAL.
You can set the layout type using the enumerated type wfcQuickPrintManual3View. The layout can be of the following types:
•  wfcQPRINTMANUAL_3VIEW_1_23VERT
•  wfcQPRINTMANUAL_3VIEW_23_VERT1
•  wfcQPRINTMANUAL_3VIEW_123_HORIZ
Note
The general view location options are analogous to the images in the Quick Drawing dialog box under View Layout.
The methods wfcQuickPrintInstructions::GetOrientation and wfcQuickPrintInstructions::SetOrientation allow you to get and set the sheet orientation for the quick print operation. You can set the orientation using the enumerated type wfcQuickPrintOrientation:
•  wfcQPRINT_ORIENTATION_PORTRAIT
•  wfcQPRINT_ORIENTATION_LANDSCAPE
The methods wfcQuickPrintInstructions::GetPaperSize and wfcQuickPrintInstructions::SetPaperSize get and set the size of the print for the print operation using the object pfcPrintSize. For more information on print options, see the section Printer Options.
Use the method wfcQuickPrintInstructions::SetPrintFlatToScreen to set the ProBoolean flag to print the flat-to-screen annotations. The flat-to-screen annotations created at screen locations in the Creo graphics window are printed at their relative locations in the drawing. You can print flat-to-screen annotations such as notes, symbols, and surface finish symbols.
The methods wfcQuickPrintInstructions::GetProjectionViewLocations and wfcQuickPrintInstructions::SetProjectionViewLocations get and set the projected views to be included in the print operation. The methods define the projected views using the object wfcQuickPrintProjectionViewLocations. These methods are applicable only to views with layout type wfcQPRINT_LAYOUT_PROJ. You can set the following projections types using the enumerated type wfcQuickPrintProjectionViewLocation:
•  wfcQPRINT_PROJ_TOP_VIEW
•  wfcQPRINT_PROJ_RIGHT_VIEW
•  wfcQPRINT_PROJ_LEFT_VIEW
•  wfcQPRINT_PROJ_BOTTOM_VIEW
•  wfcQPRINT_PROJ_BACK_NORTH
•  wfcQPRINT_PROJ_BACK_EAST
•  wfcQPRINT_PROJ_BACK_SOUTH
•  wfcQPRINT_PROJ_BACK_WEST
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.
  For the interface data, the data source is specified as a wfcWIntfNeutral object. Refer to the section Extracting Interface Data for Neutral Files, for more information on wfcWIntfNeutral object type.
•  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.
Note
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.
Window Operations
Method Introduced:
The method pfcWindow::ExportRasterImage outputs a standard Creo raster output file.
Creating Import Features from Files
To create import features in Creo Parametric from external format files use the methods described in this section.
Methods Introduced:
Use the method pfcIntfNeutralFile::Create to create a new object that represents the neutral file that creates an import feature.
Use the method wfcIntfIBL::Create to create a new object that represents the IBL file that creates an import feature.
Use the method wfcIntfInventorAsm::Create to create a new object that represents the Inventor Assembly file that creates an import feature.
Use the method wfcIntfInventorPart::Create to create a new object that represents the Inventor pat file that creates an import feature.
Use the method wfcIntfPTS::Create to create a new object that represents the PTS file that creates an import feature.
Use the method wfcIntfSEdgePart::Create to create a new object that represents the solid Edge part file that creates an import feature.
Use the method wfcIntfSEdgeSheetmetal::Create to create a new object that represents the solid Edge sheetmetal file that creates an import feature.
The output of the above methods is the value of the input argument IntfData passed to the method wfcSolid::ImportAsFeat.