Interface
This section describes various methods of importing and exporting files in Creo Object TOOLKIT Java.
Exporting Files and 2D Models
Method Introduced:
The method pfcModel.Model.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 pfcModel.ExportInstructions object that controls the export operation. The type of data that is exported is given by the pfcModel.ExportType object.
There are four general categories of files to which you can export models:
•  File types whose instructions inherit from pfcModel.GeomExportInstructions.
These instructions export files that contain precise geometric information used by other CAD systems.
•  File types whose instructions inherit from pfcModel.CoordSysExportInstructions.
These instructions export files that contain coordinate information describing faceted, solid models (without datums and surfaces).
•  File types whose instructions inherit from pfcModel.FeatIdExportInstructions.
These instructions export information about a specific feature.
•  General file types that inherit only from pfcModel.ExportInstructions.
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 Java APIWizard and the Creo online help.
Export Instructions
Export Instructions Table
Interface
Used to Export
RelationExportInstructions
A list of the relations and parameters in a part or assembly
ModelInfoExportInstructions
Information about a model, including units information, features, and children
ProgramExportInstructions
A program file for a part or assembly that can be edited to change the model
IGESExportInstructions
A drawing in IGES format
DXFExportInstructions
A drawing in DXF format
RenderExportInstructions
A part or assembly in RENDER format
STLASCIIExportInstructions
A part or assembly to an ASCII STL file
STLBinaryExportInstructions
A part or assembly in a binary STL file
BOMExportInstructions
A BOM for an assembly
DWGSetupExportInstructions
A drawing setup file
FeatInfoExportInstructions
Information about one feature in a part or assembly
MfgFeatCLExportInstructions
A cutter location (CL) file for one NC sequence in a manufacturing assembly
MfgOperClExportInstructions
A cutter location (CL) file for all the NC sequences in a manufacturing assembly
MaterialExportInstructions
A material from a part
CGMFILEExportInstructions
A drawing in CGM format
InventorExportInstructions
A part or assembly in Inventor format
FIATExportInstructions
A part or assembly in FIAT format
ConnectorParamExportInstructions
The parameters of a connector to a text file
CableParamsFileInstructions
Cable parameters from an assembly
CATIAFacetsExportInstructions
A part or assembly in CATIA format (as a faceted model)
VRMLModelExportInstructions
A part or assembly in VRML format
STEP2DExportInstructions
A two-dimensional STEP format file
MedusaExportInstructions
A drawing in MEDUSA file
CADDSExportInstructions
A CADDS5 solid model
NEUTRALFileExportInstructions
A Creo part to neutral format
ProductViewExportInstructions
A part, assembly, or drawing in Creo View format
Export.SliceExportData
A slice export format
Note
The New Instruction Classes replace the following Deprecated Classes:
Deprecated Classes
New Instruction Classes
STEPExportInstructions
STEP3DExportInstructions
VDAExportInstructions
VDA3DExportInstructions
IGES3DExportInstructions
IGES3DNewExportInstructions
Exporting Drawing Sheets
Methods Introduced:
When you export a drawing to DXF format, use the methods pfcModel.DXFExportInstructions.GetOptionValue and pfcModel.DXFExportInstructions.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 given by the pfcModel.Export2DOption object.
The method pfcModel.pfcModel.Export2DOptions_Create creates a new instance of the pfcModel.Export2DOption object. This object contains the following options:
•  ExportSheetOption—Specifies the option for exporting multiple drawing sheets. Use the method pfcModel.Export2DOption.SetExportSheetOption to set the option for exporting multiple drawing sheets. The options are given by the pfcModel.Export2DSheetOption class and can be of the following types:
  EXPORT_CURRENT_TO_MODEL_SPACE—Exports only the drawing’s current sheet as model space to a single file. This is the default type.
  EXPORT_CURRENT_TO_PAPER_SPACE—Exports only the drawing’s current sheet as paper space to a single file. This type is the same as EXPORT_CURRENT_TO_MODEL_SPACE for formats that do not support the concept of model space and paper space.
  EXPORT_ALL—Exports all the sheets in a drawing to a single file as paper space, if applicable for the format type.
  EXPORT_SELECTED—Exports selected sheets in a drawing as paper space and one sheet as model space.
•  ModelSpaceSheet—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 ExportSheetOption is set to EXPORT_SELECTED. Use the method pfcModel.Export2DOption.SetModelSpaceSheet to set this option.
•  Sheets—Specifies the sheet numbers that need to be exported as paper space. This option is applicable only if ExportSheetOption is set to EXPORT_SELECTED. Use the method pfcModel.Export2DOption.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 pfcExport.TriangulationInstructions.GetAngleControl and pfcExport.TriangulationInstructions.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 pfcExport.TriangulationInstructions.GetChordHeight and pfcExport.TriangulationInstructions.SetChordHeight to get and set the chord height for the exported facet drawings and models.
The methods pfcExport.TriangulationInstructions.GetStepSize and pfcExport.TriangulationInstructions.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 value as NULL, if you specify the Quality value.
The methods pfcModel.CoordSysExportInstructions.GetStepSize and pfcModel.CoordSysExportInstructions.SetStepSize control the step size for the exported files. The default value is 0.0.
Note
You must pass the value of Step Size value as NULL, if you specify the Quality value.
The methods pfcExport.TriangulationInstructions.GetFacetControlOptions and pfcExport.TriangulationInstructions.SetFacetControlOptions control the facet export options using bit flags. You can set the bit flags using the pfcModel.FacetControlFlag object. It has the following values:
•  FACET_STEP_SIZE_ADJUST—Adjusts the step size according to the component size.
•  FACET_CHORD_HEIGHT_ADJUST—Adjusts the chord height according to the component size.
•  FACET_USE_CONFIG—If this flag is set, values of the flags FACET_STEP_SIZE_OFF, FACET_STEP_SIZE_ADJUST, and FACET_CHORD_HEIGHT_ADJUST are ignored and the configuration settings from the Creo user interface are used during the export operation.
•  FACET_CHORD_HEIGHT_DEFAULT—Uses the default value set in the Creo user interface for the chord height.
•  FACET_ANGLE_CONTROL_DEFAULT—Uses the default value set in the Creo user interface for the angle control.
•  FACET_STEP_SIZE_DEFAULT—Uses the default value set in the Creo user interface for the step size.
•  FACET_STEP_SIZE_OFF—Switches off the step size control.
•  FACET_FORCE_INTO_RANGE—Forces the out-of-range parameters into range. If any of the FACET_*_DEFAULT option is set, then the option FACET_FORCE_INTO_RANGE is not applied on that parameter.
•  FACET_STEP_SIZE_FACET_INCLUDE_QUILTS—Includes quilts in the export of Creo model to the specified format.
•  EXPORT_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.Model.Display before calling pfcModel.Model.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 pfcModel.CoordSysExportInstructions.GetCsysName returns the name of the 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 pfcModel.CoordSysExportInstructions.SetCsysName allows you to set the coordinate system feature name.
The methods pfcModel.CoordSysExportInstructions.GetQuality and pfcModel.CoordSysExportInstructions.SetQuality can be used instead of pfcModel.CoordSysExportInstructions.GetMaxChordHeight and pfcModel.CoordSysExportInstructions.GetMaxChordHeight and pfcModel.CoordSysExportInstructions.GetAngleControl and pfcModel.CoordSysExportInstructions.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 pfcModel.CoordSysExportInstructions.GetMaxChordHeight and pfcModel.CoordSysExportInstructions.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 pfcModel.CoordSysExportInstructions.GetAngleControl and pfcModel.CoordSysExportInstructions.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 value as NULL, if you specify the Quality value.
The methods pfcModel.CoordSysExportInstructions.GetSliceExportData and pfcModel.CoordSysExportInstructions.SetSliceExportData get and set the pfcModel.SliceExportData 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 pfcModel.SliceExportData.GetCompIds and pfcModel.SliceExportData.SetCompIds to work with the component IDs.
The methods pfcModel.CoordSysExportInstructions.GetStepSize and pfcModel.CoordSysExportInstructions.SetStepSize control the step size for the exported files. The default value is 0.0.
Note
You must pass the value of Step Size value as NULL, if you specify the Quality value.
The methods pfcModel.CoordSysExportInstructions.GetFacetControlOptions and pfcModel.CoordSysExportInstructions.SetFacetControlOptions control the facet export options using bit flags. You can set the bit flags using the pfcModel.FacetControlFlag object. For more information on the bit flag values, please refer to the section Exporting to Faceted Formats.
The function pfcSelect.Selection.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 pfcExport.pfcExport.PDFExportInstructions_Create creates a new instance of the pfcExport.PDFExportInstructions data object that describes how to export Creo 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 pfcExport.PDFExportInstructions.SetFilePath to set the name of the output file.
•  Options—Specifies a collection of PDF export options of the type pfcExport.PDFOption.Createa new instance of this object using the method pfcExport.pfcExport.PDFOption_Create. This object contains the following attributes:
  OptionType—Specifies the type of option in terms of the pfcExport.PDFOptionType class. Set this option using the method pfcExport.PDFOption.SetOptionType.
  OptionValue—Specifies the value of the option in terms of the pfcArgument.ArgValue object. Set this option using the method pfcExport.PDFOption.SetOptionValue.
Use the method pfcExport.PDFExportInstructions.SetOptions to set the collection of PDF export options.
•  ProfilePath—Specifies the export profile path. Use the method pfcExport.PDFExportInstructions.SetProfilePath to set the profile path. When you set the profile path, the PDF export options set in the data object pfcExport.PDFExportInstructions data object are ignored when the method pfcModel.Model.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 EpfcExport.PDFOptionType class) available for export to PDF and U3D formats are described as follows:
•  PDFOPT_FONT_STROKE—Allows you to switch between using TrueType fonts or “stroking” text in the resulting document. This option is given by the pfcExport.PDFFontStrokeMode class and takes the following values:
  PDF_USE_TRUE_TYPE_FONTS—Specifies TrueType fonts. This is the default type.
  PDF_STROKE_ALL_FONTS—Specifies the option to stroke all fonts.
•  PDFOPT_COLOR_DEPTH—Allows you to choose between color, grayscale, or monochrome output. This option is given by the pfcExport.PDFColorDepth class and takes the following values:
  PDF_CD_COLOR—Specifies color output. This is the default value.
  PDF_CD_GRAY—Specifies grayscale output.
  PDF_CD_MONO—Specifies monochrome output.
•  PDFOPT_HIDDENLINE_MODE—Enables you to set the style for hidden lines in the resulting PDF document. This option is given by the pfcExport.PDFHiddenLineMode class and takes the following values:
  PDF_HLM_SOLID—Specifies solid hidden lines.
  PDF_HLM_DASHED—Specifies dashed hidden lines. This is the default type.
•  PDFOPT_SEARCHABLE_TEXT—If true, stroked text is searchable. The default value is true.
•  PDFOPT_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.
•  PDFOPT_LAUNCH_VIEWER—If true, launches the Adobe Acrobat Reader. The default value is true.
•  PDFOPT_LAYER_MODE—Enables you to set the availability of layers in the document. It is given by the pfcExport.PDFLayerMode class and takes the following values:
  PDF_LAYERS_ALL—Exports the visible layers and entities. This is the default.
  PDF_LAYERS_VISIBLE—Exports only visible layers in a drawing.
  PDF_LAYERS_NONE—Exports only the visible entities in the drawing, but not the layers on which they are placed.
•  PDFOPT_PARAM_MODE—Enables you to set the availability of model parameters as searchable metadata in the PDF document. It is given by the pfcExport.PDFParameterMode class and takes the following values:
  PDF_PARAMS_ALL—Exports the drawing and the model parameters to PDF. This is the default.
  PDF_PARAMS_DESIGNATED—Exports only the specified model parameters in the PDF metadata.
  PDF_PARAMS_NONE—Exports the drawing to PDF without the model parameters.
•  PDFOPT_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.
•  PDFOPT_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.
•  PDFOPT_BOOKMARK_VIEWS—If true, adds bookmarks to the PDF document showing zoomed in views on the drawing.
•  PDFOPT_BOOKMARK_SHEETS—If true, adds bookmarks to the PDF document showing each of the drawing sheets.
•  PDFOPT_BOOKMARK_FLAG_NOTES—If true, adds bookmarks to the PDF document showing the text of the flag note.
•  PDFOPT_TITLE—Specifies a title for the PDF document.
•  PDFOPT_AUTHOR—Specifies the name of the person generating the PDF document.
•  PDFOPT_SUBJECT—Specifies the subject of the PDF document.
•  PDFOPT_KEYWORDS—Specifies relevant keywords in the PDF document.
•  PDFOPT_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.
•  PDFOPT_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 PDFOPT_ALLOW_*.
•  PDFOPT_RESTRICT_OPERATIONS—If true, enables you to restrict or limit operations on the PDF document. By default, is is false.
•  PDFOPT_ALLOW_MODE—Enables you to set the security settings for the PDF document. This option must be set if PDFOPT_RESTRICT_OPERATIONS is set to true. It is given by the pfcExport.PDFRestrictOperationsMode class and takes the following values:
  PDF_RESTRICT_NONE—Specifies that the user can perform any of the permitted viewer operations on the PDF document. This is the default value.
  PDF_RESTRICT_FORMS_SIGNING—Restricts the user from adding digital signatures to the PDF document.
  PDF_RESTRICT_INSERT_DELETE_ROTATE—Restricts the user from inserting, deleting, or rotating the pages in the PDF document.
  PDF_RESTRICT_COMMENT_FORM_SIGNING—Restricts the user from adding or editing comments in the PDF document.
  PDF_RESTRICT_EXTRACTING—Restricts the user from extracting pages from the PDF document.
•  PDFOPT_ALLOW_PRINTING—If true, allows you to print the PDF document. By default, it is true.
•  PDFOPT_ALLOW_PRINTING_MODE—Enables you to set the print resolution. It is given by the pfcExport.PDFPrintingMode class and takes the following values:
  PDF_PRINTING_LOW_RES—Specifies low resolution for printing.
  PDF_PRINTING_HIGH_RES—Specifies high resolution for printing. This is the default value.
•  PDFOPT_ALLOW_COPYING—If true, allows you to copy content from the PDF document. By default, it is true.
•  PDFOPT_ALLOW_ACCESSIBILITY—If true, enables visually-impaired screen reader devices to extract data independent of the value given by the pfcExport.PDFRestrictOperationsMode class. The default value is true.
•  PDFOPT_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.
•  PDFOPT_LINECAP—Enables you to control the treatment of the ends of the geometry lines exported to PDF. It is given by the pfcExport.PDFLinecap class and takes the following values:
  PDF_LINECAP_BUTT—Specifies the butt cap square end. This is the default value.
  PDF_LINECAP_ROUND—Specifies the round cap end.
  PDF_LINECAP_PROJECTING_SQUARE—Specifies the projecting square cap end.
•  PDFOPT_LINEJOIN—Enables you to control the treatment of the joined corners of connected lines exported to PDF. It is given by the pfcExport.PDFLinejoin class and takes the following values:
  PDF_LINEJOIN_MITER—Specifies the miter join. This is the default.
  PDF_LINEJOIN_ROUND—Specifies the round join.
  PDF_LINEJOIN_BEVEL—Specifies the bevel join.
•  PDFOPT_SHEETS—Allows you to specify the sheets from a Creo drawing that are to be exported to PDF. It is given by the pfcExport.PrintSheets enumerated class and takes the following values:
  PRINT_CURRENT_SHEET—Only the current sheet is exported to PDF
  PRINT_ALL_SHEETS—All the sheets are exported to PDF. This is the default value.
  PRINT_SELECTED_SHEETS—Sheets of a specified range are exported to PDF. If this value is assigned, then the value of the option PDFOPT_SHEET_RANGE must also be known.
•  PDFOPT_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 PDFOPT_SHEETS must be set to the value PRINT_SELECTED_SHEETS.
•  PDFOPT_EXPORT_MODE—Enables you to select the object to be exported to PDF and the export format. It is given by the pfcExport.PDFExportMode class and takes the following values:
  PDF_2D_DRAWING—Only drawings are exported to PDF. This is the default value.
  PDF_3D_AS_NAMED_VIEWS—3D models are exported as 2D raster images embedded in PDF files.
  PDF_3D_AS_U3D_PDF—3D models are exported as U3D models embedded in one-page PDF files.
  PDF_3D_AS_U3D—A 3D model is exported as a U3D (.u3d) file. This value ignores the options set for the pfcExport.PDFOptionType class.
•  PDFOPT_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 PDFOPT_EXPORT_MODE is set to PDF_3D_AS_U3D. The values for this option are given by the pfcExport.PDFU3DLightingMode class.
•  PDFOPT_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 PDFOPT_EXPORT_MODE is set to PDF_3D_AS_U3D. The values for this option are given by the pfcModel.PDFU3DRenderMode class.
•  PDFOPT_SIZE—Allows you to specify the page size of the exported PDF file. The values for this option are given by the pfcExport.PlotPaperSize class. If the value is set to VARIABLESIZEPLOT, you also need to set the options PDFOPT_HEIGHT and PDFOPT_WIDTH.
•  PDFOPT_HEIGHT—Enables you to set the height for a user-defined page size of the exported PDF file. The default value is 0.0.
•  PDFOPT_WIDTH—Enables you to set the width for a user-defined page size of the exported PDF file. The default value is 0.0.
•  PDFOPT_ORIENTATION—Enables you to specify the orientation of the pages in the exported PDF file. It is given by the pfcSheet.SheetOrientation class.
  ORIENT_PORTRAIT—Exports the pages in portrait orientation. This is the default value.
  ORIENT_LANDSCAPE—Exports the pages in landscape orientation.
•  PDFOPT_TOP_MARGIN—Allows you to specify the top margin of the view port. The default value is 0.0.
•  PDFOPT_LEFT_MARGIN—Allows you to specify the left margin of the view port. The default value is 0.0.
•  PDFOPT_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.
•  PDFOPT_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.
•  PDFOPT_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.
•  PDFOPT_ADD_VIEWS—If true, allows you to add view definitions to the U3D model from a file. By default, it is true.
•  PDFOPT_VIEW_TO_EXPORT—Specifies the view or views to be exported to the PDF file. It is given by the pfcExport.PDFSelectedViewMode class and takes the following values:
  PDF_VIEW_SELECT_CURRENT—Exports the current graphical area to a one-page PDF file.
  PDF_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.
  PDF_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 PDFOPT_SELECTED_VIEW must also be set.
•  PDFOPT_SELECTED_VIEW—Sets the option PDFOPT_VIEW_TO_EXPORT to the value PDF_VIEW_SELECT_BY_NAME, if the corresponding view is successfully found.
•  PDFOPT_PDF_SAVE—Specifies the PDF save options. It is given by the pfcExport.PDFSaveMode class and takes the following values:
  PDF_ARCHIVE_1—Applicable only for the value PDF_2D_DRAWING. Saves the drawings as PDF with the following conditions:
  The value of pfcExport.PDFLayerMode is set to PDF_LAYERS_NONE.
  The value of PDFOPT_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 PDFOPT_PASSWORD_TO_OPEN is set to NULL.
  The value of PDFOPT_MASTER_PASSWORD is set to NULL.
  PDF_FULL—Saves the PDF with the values set by you. This is the default value.
Exporting 3D Geometry
Creo Object TOOLKIT Java 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.Model.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.
•  Export3DInstructions
•  ACIS3DExportInstructions
•  CATIAModel3DExportInstructions
•  CATIASession3DExportInstructions
•  CatiaPart3DExportInstructions
•  CatiaProduct3DExportInstructions
•  CatiaCGR3DExportInstructions
•  DXF3DExportInstructions
•  DWG3DExportInstructions
•  IGES3DNewExportInstructions
•  JT3DExportInstructions
•  ParaSolid3DExportInstructions
•  STEP3DExportInstructions
•  SWPart3DExportInstructions
•  SWAsm3DExportInstructions
•  UG3DExportInstructions
•  VDA3DExportInstructions
The method pfcModel.Model.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 pfcSession.BaseSession.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 pfcExport.pfcExport.TriangulationInstructions_Create creates a object that will be used to define the parameters for faceted exports.
Export Utilities
Methods Introduced:
The method pfcSession.BaseSession.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 pfcSession.BaseSession.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 pfcSession.BaseSession.IsConfigurationSupported and pfcSession.BaseSession.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 methodModel.Model.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.Solid.ExportShrinkwrap. This method takes the ShrinkwrapExportInstructions 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 ShrinkwrapExportInstructions or ShrinkwrapModelExportInstructions.
Type of Shrinkwrap Model
Interface to Use
Surface Subset
ShrinkwrapSurfaceSubset
Instructions
Faceted Part
ShrinkwrapFacetedPart
Instructions
Faceted VRML
ShrinkwrapFacetedVRML
Instructions
Faceted STL
ShrinkwrapFacetedSTLInstructions
Merged Solid
ShrinkwrapMergedSolidInstructions
Setting Shrinkwrap Options
The interfaceShrinkwrapModelExportInstructions 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 pfcShrinkwrap.ShrinkwrapModelExportInstructions.GetMethod returns the method used to create the shrinkwrap. The types of shrinkwrap methods are:
•  SWCREATE_SURF_SUBSET—Surface Subset
•  SWCREATE_FACETED_SOLID—Faceted Solid
•  SWCREATE_MERGED_SOLID—Merged Solid
The method pfcShrinkwrap.ShrinkwrapModelExportInstructions.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 pfcShrinkwrap.ShrinkwrapModelExportInstructions.SetQuality to set the quality level for the system during the shrinkwrap export. The default value is 1.
The method pfcShrinkwrap.ShrinkwrapModelExportInstructions.
GetAutoHoleFilling
returns true if auto hole filling is enabled during Shrinkwrap export. The method pfcShrinkwrap.ShrinkwrapModelExportInstructions.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 pfcShrinkwrap.ShrinkwrapModelExportInstructions.Get
IgnoreSkeleton
and pfcShrinkwrap.ShrinkwrapModelExportInstructions.SetIgnoreSkeleton determine whether the skeleton model geometry must be included in the shrinkwrap model.
The methodspfcShrinkwrap.ShrinkwrapModelExportInstructions.Get
IgnoreQuilts
and pfcShrinkwrap.ShrinkwrapModelExportInstructions.Set
IgnoreQuilts
determine whether external quilts must be included in the shrinkwrap model.
The method pfcShrinkwrap.ShrinkwrapModelExportInstructions.
GetAssign
MassProperties
determines the mass property of the model. The method pfcShrinkwrap.ShrinkwrapModelExportInstructions.SetAssign
MassProperties
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 pfcShrinkwrap.ShrinkwrapModelExport
Instructions.GetIgnoreSmallSurfaces
specifies whether small surfaces are ignored during the creation of a shrinkwrap model. The method pfcShrinkwrap.ShrinkwrapModelExportInstructions
.SetIgnore
SmallSurfaces
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 pfcShrinkwrap.ShrinkwrapModelExportInstructions
.GetSmall
SurfPercentage
and pfcShrinkwrap.ShrinkwrapModelExportInstructions.Set
SmallSurfPercentage
.
The method pfcShrinkwrap.ShrinkwrapModelExportInstructions.Get
DatumReferences
and pfcShrinkwrap.ShrinkwrapModelExportInstructions.SetDatum
References
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 pfcShrinkwrap.Shrinkwrap.ShrinkwrapSurfaceSubsetInstructions
_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 pfcShrinkwrap.ShrinkwrapSurfaceSubsetInstructions.
GetAdditionalSurfaces
specifies the surfaces included in the shrinkwrap model while the method pfcShrinkwrap.ShrinkwrapSurfaceSubsetInstructions.
SetAdditionalSurfaces
selects individual surfaces to be included in the shrinkwrap model.
The method pfcShrinkwrap.ShrinkwrapSurfaceSubsetInstructions.
GetOutputModel
returns the template model where the shrinkwrap geometry is to be created while the method pfcShrinkwrap.ShrinkwrapSurfaceSubsetInstructions.
SetOutputModel
sets the template model.
Faceted Solid Options
The ShrinkwrapFacetedFormatInstructions interface consists of the following types:
•  SWFACETED_PARTCreo part with normal geometry. This is the default format type.
•  SWFACETED_STL—An STL file.
•  SWFACETED_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 pfcShrinkwrap.ShrinkwrapFacetedFormatInstructions.GetFormat returns the output file format of the shrinkwrap model.
The methods pfcShrinkwrap.ShrinkwrapFacetedFormatInstructions.GetFramesFile and pfcShrinkwrap.ShrinkwrapFacetedFormatInstructions.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 pfcShrinkwrap.Shrinkwrap.ShrinkwrapFacetedPartInstructions_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 pfcShrinkwrap.ShrinkwrapFacetedPartInstructions.
GetLightweight
returns a true value if the output file format of the shrinkwrap model is a Lightweight Creo part. The method pfcShrinkwrap.ShrinkwrapFacetedPartInstructions.
SetLight
weight
specifies if the Creo part is exported as a light weight faceted geometry.
VRML Export Options
Methods Introduced:
The static method pfcShrinkwrap.Shrinkwrap.ShrinkwrapVRMLInstructions_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 pfcShrinkwrap.ShrinkwrapVRMLInstructions.GetOutputFile returns the name of the output file to be created and the method pfcShrinkwrap.ShrinkwrapVRMLInstructions.SetOutputFile specifies the name of the output file to be created.
STL Export Options
Methods Introduced:
The static method pfcShrinkwrap.Shrinkwrap.ShrinkwrapVRMLInstructions_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 pfcShrinkwrap.ShrinkwrapSTLInstructions.GetOutputFile returns the name of the output file to be created and the method pfcShrinkwrap.ShrinkwrapSTLInstructions.SetOutputFile specifies the name of the output file to be created.
Merged Solid Options
Methods Introduced:
The static method pfcShrinkwrap.Shrinkwrap.ShrinkwrapMergedSolidInstructions_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 pfcShrinkwrap.ShrinkwrapMergedSolidInstructions.GetAdditional
Components
specifies individual components of the assembly to be merged into the shrinkwrap model. Use the method pfcShrinkwrap.ShrinkwrapMergedSolidInstructions.SetAdditional
Components
to select individual components of the assembly to be merged into the shrinkwrap model.
VRML Representation
Importing Files
Method Introduced:
The method pfcModel.Model.Import reads a file into Creo. The format must be the same as it would be if these files were created by Creo application. The parameters are:
•  FilePath—Absolute path of the file to be imported along with its extension.
•  ImportData—The ImportInstructions 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
RelationImportInstructions
A list of relations and parameters in a part or assembly.
IGESSectionImportInstructions
A section model in IGES format.
ProgramImportInstructions
A program file for a part or assembly that can be edited to change the model.
ConfigImportInstructions
Configuration instructions.
DWGSetupImportInstructions
A drawing s/u file.
SpoolImportInstructions
Spool instructions.
ConnectorParamsImportInstructions
Connector parameter instructions.
ASSEMTreeCFGImportInstructions
Assembly tree CFG instructions.
WireListImportInstructions
Wirelist instructions.
CableParamsImportInstructions
Cable parameters from an assembly.
STEPImport2DInstructions
A part or assembly in STEP format.
IGESImport2DInstructions
A part or assembly in IGES format.
DXFImport2DInstructions
A drawing in DXF format.
DWGImport2DInstructions
A drawing in DWG format.
Note
•  The method pfcModel.Model.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 pfcSession.BaseSession.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 pfcModel.Import2DInstructions 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 pfcSession.BaseSession.Import2DModel does not support importing of CADAM type of files.
Importing 3D Geometry
Methods Introduced:
For some input formats, the method pfcSession.BaseSession.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 pfcSession.BaseSession.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:
  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
  IMPORT_NEW_INVENTOR_PART
  IMPORT_NEW_INVENTOR_ASSEM
  IMPORT_NEW_CC
  IMPORT_NEW_SEDGE_PART
  IMPORT_NEW_SEDGE_ASSEMBLY
  IMPORT_NEW_SEDGE_SHEETMETAL_PART
  IMPORT_NEW_3MF
•  ModelType—Specifies the type of the model. It can be a part, assembly or drawing.
•  NewModelName—Specifies a name for the imported model.
•  LayerImportFilter—Specifies the layer filter. This parameter is optional.
The interface pfcImport.LayerImportFilter has a call back function pfcImport.LayerImportFilter.OnLayerImport. Creo passes the object pfcImport.ImportedLayer describing each imported layer to the layer filter to allow you to perform changes on each layer as it is imported.
The method pfcExceptions.XCancelProEAction.Throw can be called from the body of the method pfcImport.LayerImportFilter.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 pfcImport.ImportedLayer.GetName returns the name of the layer while the method pfcImport.ImportedLayer.SetNewName can be used to set the name of the layer. The name can be numeric or alphanumeric.
The method pfcImport.ImportedLayer.GetSurfaceCount returns the number of curves on the layer.
The method pfcImport.ImportedLayer.GetTrimmedSurfaceCount returns the number of trimmed surfaces on the layer and the method pfcImport.ImportedLayer.GetCurveCount returns the number of curves on the layer.
The method pfcImport.ImportedLayer.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:
•  IMPORT_LAYER_DISPLAY—Displays the imported layer.
•  IMPORT_LAYER_SKIP—Does not import entities on this layer.
•  IMPORT_LAYER_BLANK—Blanks the selected layer.
•  IMPORT_LAYER_IGNORE—Imports only entities on this layer but not the layer.
The default action type is IMPORT_LAYER_DISPLAY.
Import Feature Properties
The methods defined in this section get the properties of the import feature.
Methods Introduced:
The method wfcFeature.WFeature.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 wfcFeature.WFeature.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 wfcFeature.WFeature.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 (ITEM_SURFACE)
  Edge (ITEM_EDGE)
  Quilt (ITEM_QUILT)
Use the method wfcFeature.WFeature.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 (ITEM_SURFACE)
  Edge (ITEM_EDGE)
  Quilt (ITEM_QUILT)
The methods wfcFeature.ImportFeatureIdMap.GetItemId and wfcFeature.ImportFeatureIdMap.SetItemId retrieve and set the item id of an import feature id map.
The methods wfcFeature.ImportFeatureIdMap.GetItemType and wfcFeature.ImportFeatureIdMap.SetItemType retrieve and set item type of the import feature id map using the enumerated type pfcModelItem.ModelItemType.
The methods wfcFeature.ImportFeatureIdMap.GetUserId and wfcFeature.ImportFeatureIdMap.SetUserId retrieve and set the id or ids assigned by Creo Parametric.
The method wfcFeature.WFeature.GetImportFeatureData returns information about the parameters assigned to the specified import feature as a ImportFeatureData object.
The method wfcFeature.ImportFeatureData.GetIntfType returns the file format type of the specified import feature.
The method wfcFeature.ImportFeatureData.GetFileName returns the name of the file from which the import feature was created.
The method wfcFeature.ImportFeatureData.GetCsys returns the coordinate system with respect to which the import feature is aligned.
The method wfcFeature.ImportFeatureData.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 wfcFeature.ImportRedefByFeatAttributes_Create creates a data object that contains information about the an import feature that is redefined by attributes.
Use the methods wfcFeature.ImportRedefByFeatAttributes.GetImportFeatAttributes and wfcFeature.ImportRedefByFeatAttributes.SetImportFeatAttributes to retrieve and set the import feature attributes using the object wfcFeature.ImportFeatAttributes.
The method wfcFeature.wfcFeature.ImportFeatAttributes_Create creates a data object that contains information about the attributes of the import feature.
The method wfcFeature.ImportFeatAttributes.MakeSolid returns a boolean value that indicates if the import feature was created as a solid or a surface type. Use the method wfcFeature.ImportFeatAttributes.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 wfcFeature.ImportFeatAttributes.SetSolid to True.
The method wfcFeature.ImportFeatAttributes.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 wfcFeature.ImportFeatAttributes.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 wfcFeature.ImportFeatAttributes.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 wfcFeature.ImportFeatAttributes.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 wfcFeature.ImportFeatAttributes.GetAddBodies and wfcFeature.ImportFeatAttributes.SetAddBodies to retrieve and set the option for creating the same body structure as is present in the source file.
The methods wfcFeature.ImportFeatAttributes.GetBodyUseOpts and wfcFeature.ImportFeatAttributes.SetBodyUseOpts retrieve and specifies the body options you can use while importing a feature and is defined by the enumerated data type wfcFeaure.ImportBodyUseOpts. The valid values are:
•  IMPORT_BODY_USE_DEFAULT—Imports feature in the default body.
•  IMPORT_BODY_USE_NEW—Imports feature in a new body.
•  IMPORT_BODY_USE_ALL—Currently not supported.
•  IMPORT_BODY_USE_SELECTED—Imports feature in a selected body.
The methods wfcFeature.ImportFeatAttributes.GetBodyArray and wfcFeature.ImportFeatAttributes.SetBodyArray get and set the array of bodies to be selected. By default, the size is 1. You must not call the method wfcFeature.ImportFeatAttributes.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 wfcFeature.WFeature.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 ImportFeatureRedefSource object.
Use the method wfcFeature.ImportFeatureRedefSource.GetRedefOperationType to get the operation type for the redefinition of the import feature as an enumerated data type ImportFeatRedefOperationType. The types of operation are:
•  IMPORT_FEAT_REDEF_CHANGE_ATTR—Specifies if the attributes of the existing import feature must be changed.
•  IMPORT_FEAT_REDEF_SUBSTITUTE—Specifies if the existing import feature is substituted with a new import feature.
The method wfcSession.WSession.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 the following types:
•  IMPORT_FEAT_REDEF_DATA_SOURCE_NONE—Specifies that the existing data source must be reloaded.
•  IMPORT_FEAT_REDEF_DATA_SOURCE_ATTR—Specifies that the data source must contain information about the attributes of the import feature.
•  IMPORT_FEAT_REDEF_DATA_SOURCE_NEW—Specifies that the data source must contain information about the new part model to be imported into Creo.
Use the method wfcFeature.ImportRedefByDataSource_Create to create an object whose import feature is redefined by a data source.
The methods wfcFeature.ImportRedefByDataSource.GetDataSource and wfcFeature.ImportRedefByDataSource.SetDataSource retrieve and set the data source with which the import feature is redefined.
Extracting Creo Parametric 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 wfcPart.WPart.GetInterfaceData extracts information about the geometry of a part as a InterfaceData 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 ConversionOptions.
The method wfcPart.wfcPart.ConversionOptions_Create creates a data object of type ConversionOptions that contains information about the curves, edges, and surfaces of a part.
The method wfcPart.ConversionOptions.GetEdgeRepresentation gets the information about the representation of edges in a part as a EdgeRepresentation object. Use the method wfcPart.ConversionOptions.SetEdgeRepresentation to set the parameters for the representation of edges in a part.
The method wfcPart.wfcPart.EdgeRepresentation_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 wfcPart.EdgeRepresentation.GetUVPoints and wfcPart.EdgeRepresentation.SetUVPoints to get and set the edge UV points on the surface for edge representation.
•  UVCurves—Specifies the representation of the edge using UV curves. Use the methods wfcPart.EdgeRepresentation.GetUVCurves and wfcPart.EdgeRepresentation.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 wfcPart.EdgeRepresentation.GetXYZCurves and wfcPart.EdgeRepresentation.SetXYZCurves to get and set the XYZ curves on the surface for edge representation.
The method wfcPart.ConversionOptions.GetCurveConversionOption returns the conversion option set for curves during the data exchange. Use the method wfcPart.ConversionOptions.SetCurveConversionOption to set the curve conversion option.
The method wfcPart.ConversionOptions.GetSurfaceConversionOption returns the conversion option set for surfaces during the data exchange. Use the method wfcPart.ConversionOptions.SetSurfaceConversionOption to set the surface conversion option.
The method wfcModel.wfcModel.InterfaceData_Create creates a data object of type that contains the interface data.
The method wfcModel.InterfaceData.GetSurfaceData returns an array of surface data for the specified interface data. Use the method wfcModel.InterfaceData.SetSurfaceData to set the surface data for a part import.
The method wfcModel.InterfaceData.GetEdgeDescriptor returns an array of edge data for the specified interface data. Use the method wfcModel.InterfaceData.SetEdgeDescriptor to set the edge data for a part import.
The method wfcModel.InterfaceData.GetQuiltData returns an array of quilt data for the specified interface data. Use the method wfcModel.InterfaceData.SetQuiltData to set the quilt data for a part import.
The method wfcModel.InterfaceData.GetDatumData returns an array of datum data for the specified interface data. Use the method wfcModel.InterfaceData.SetDatumData to set the datum data for a part import.
The method wfcModel.InterfaceData.GetAccuracytype gets the type of accuracy for the interface data using the enumerated type wfcModel.Accuracytype. Use the method wfcModel.InterfaceData.SetAccuracytype to set the type of accuracy. The valid values are:
•  ACCU_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.
•  ACCU_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.
Refer to theCreo Help for more information on accuracy.
The method wfcModel.InterfaceData.GetAccuracy returns the value of the accuracy for the specified model. Use the method wfcModel.InterfaceData.SetAccuracy to set the accuracy for the specified model.
The method wfcModel.InterfaceData.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 wfcModel.InterfaceData.SetOutline to set the display outline for the bounding box to contain the interface data.
The method wfcSession.WSession.GetDataSourceType returns the type of the interface source data in session using the enumerated type wfcSession.IntfDataSourceType. The valid values are:
•  INTF_DATA_SOURCE_FILE—Specifies that the data source is from a file.
•  INTF_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 wfcModel.wfcModel.WIntfNeutral_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 wfcModel.WIntfNeutral.SetInterfaceData to set the interface data for the specified neutral file. The method wfcModel.WIntfNeutral.GetInterfaceData gets the interface data for the specified neutral file. Refer to the section Extracting Creo Parametric Geometry as Interface Data, for more information on interface data object InterfaceData.
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 withCreo part or assembly that is:
•  A Translated Image Model (TIM) representation of a model imported from the ATB interface, such as, CADDS or CATIA.
•  ACreo 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.
Only import operations in Creo applications 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 wfcModel.WModel.GetTIMInfo returns information about TIM in the specified model as a wfcTIMInfo object.
The method wfcModel.TIMInfo.IsModelTIM checks if the specified model is a TIM.
The method wfcModel.TIMInfo.ModelHasTIMFeats checks if the specified model contains a TIM feature.
The method wfcModel.TIMInfo.GetFeatIds lists all the TIMs or ATB-enabled features present in the specified model. This method can be called after the method wfcModel.TIMInfo.ModelHasTIMFeats which determines if the specified model has one or more TIM features.
The method wfcModel.WModel.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 existing Creo part models. The method wfcModel.WModel.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 arguments 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 wfcModel.WModel.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 wfcModel.ATBVerificationResults.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 wfcModel.ATBVerificationResults.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 wfcModel.ATBVerificationResults.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 wfcModel.WModel.MarkATBModelAsOutOfDate identifies all the ATB-enabled features that are out of date for the update operation.
The method wfcModel.WModel.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 wfcModel.WModel.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 pfcExport.PrinterInstructions data object.
Methods Introduced:
The method pfcExport.pfcExport.PrinterInstructions_Create creates a new instance of the pfcExport.PrinterInstructions object. The object contains the following instruction attributes:
•  PrinterOption—Specifies the printer settings for printing a file in terms of the pfcExport.PrintPrinterOption object. Set this attribute using the method pfcExport.PrinterInstructions.SetPrinterOption.
•  PlacementOption—Specifies the placement options for printing purpose in terms of the pfcExport.PrintMdlOption object. Set this attribute using the method pfcExport.PrinterInstructions.SetPlacementOption.
•  ModelOption—Specifies the model options for printing purpose in terms of the pfcExport.PrintPlacementOption object. Set this attribute using the method pfcExport.PrinterInstructions.SetModelOption.
•  WindowId—Specifies the current window identifier. Set this attribute using the method pfcExport.PrinterInstructions.SetWindowId.
Printer Options
The printer settings for printing a file are defined in the pfcExport.PrintPrinterOption object.
Methods Introduced:
The method pfcExport.pfcExport.PrintPrinterOption_Create creates a new instance of the pfcExport.PrintPrinterOption object.
The method pfcSession.BaseSession.GetPrintPrinterOptions retrieves the printer settings.
The pfcExport.PrintPrinterOption 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 pfcExport.PrintPrinterOption.SetDeleteAfter to assign this option.
•  FileName—Specifies the name of the file to be printed. Use the method pfcExport.PrintPrinterOption.SetFileName to set the name.
Note
If the method pfcModel.Model.Export is called for pfcModel.ExportType object, then the argument FileName is ignored, and can be passed as NULL. You must use the method pfcModel.Model.Export to set the FileName.
•  PaperSize—Specifies the parameters of the paper to be printed in terms of the pfcExport.PrintSize object. The method pfcExport.PrintPrinterOption.SetPaperSize assigns the PaperSize option. Use the method pfcExport.Export.PrintSize_Create to create a new instance of the pfcExport.PrintSize object. This object contains the following options:
  Height—Specifies the height of paper. Use the method pfcExport.PrintSize.SetHeight to set the paper height.
  Width—Specifies the width of paper. Use the method pfcExport.PrintSize.SetWidth to set the paper width.
  PaperSize—Specifies the size of the paper used for the plot in terms of the pfcModel.PlotPaperSize object. Use the method pfcExport.PrintSize.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 pfcModel.PlotPaperSize:
  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 pfcExport.PrintPrinterOption.SetPenTable to set this option.
•  PrintCommand—Specifies the command to be used for printing. Use the method pfcExport.PrintPrinterOption.SetPrintCommand to set the command.
•  PrinterType—Specifies the printer type. Use the method pfcExport.PrintPrinterOption.SetPrinterType to assign the type.
•  Quantity—Specifies the number of copies to be printed. Use the pfcExport.PrintPrinterOption.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 pfcExport.PrintPrinterOption.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 pfcExport.PrintPrinterOption.SetRotatePlot to set this option.
•  SaveMethod—Specifies the save method in terms of the pfcExport.PrintSaveMethod class. Use the method pfcExport.PrintPrinterOption.SetSaveMethod to specify the save method. The available methods are as follows:
  PRINT_SAVE_SINGLE_FILE—Plot is saved to a single file.
  PRINT_SAVE_MULTIPLE_FILE—Plot is saved to multiple files.
  PRINT_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 pfcExport.PrintPrinterOption.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 pfcExport.PrintPrinterOption.SetSendToPrinter to set this option.
•  Slew—Specifies the speed of the pen in centimeters per second in X and Y direction. Use the method pfcExport.PrintPrinterOption.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 pfcExport.PrintPrinterOption.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 pfcExport.PrintPrinterOption.SetUseTtf to set this option.
Placement Options
The placement options for printing purpose are defined in the pfcExport.PrintPlacementOption object.
Methods Introduced:
The method pfcExport.pfcExport.PrintPlacementOption_Create creates a new instance of the pfcExport.PrintPlacementOption object.
The method pfcSession.BaseSession.GetPrintPlacementOptions retrieves the placement options.
The pfcExport.PrintPlacementOption object contains the following options:
•  BottomOffset—Specifies the offset from the lower-left corner of the plot. Use the method pfcExport.PrintPlacementOption.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 pfcExport.PrintPlacementOption.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 pfcExport.PrintPlacementOption.SetKeepPanzoom to set this option.
•  LabelHeight—Specifies the height of the label in inches. Use the method pfcExport.PrintPlacementOption.SetLabelHeight to set this option.
•  PlaceLabel—Specifies whether you want to place the label on the plot. Use the method pfcExport.PrintPlacementOption.SetPlaceLabel to set this option.
•  Scale—Specifies the scale used for the plot. Use the method pfcExport.PrintPlacementOption.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 pfcExport.PrintPlacementOption.SetShiftAllCorner to set this option.
•  SideOffset—Specifies the offset from the sides. Use the method pfcExport.PrintPlacementOption.SetSideOffset to set this option.
•  X1ClipPosition—Specifies the first X parameter for defining the clip position. Use the method pfcExport.PrintPlacementOption.SetX1ClipPosition to set this option.
•  X2ClipPosition—Specifies the second X parameter for defining the clip position. Use the method pfcExport.PrintPlacementOption.SetX2ClipPosition to set this option.
•  Y1ClipPosition—Specifies the first Y parameter for defining the clip position. Use the method pfcExport.PrintPlacementOption.SetY1ClipPosition to set this option.
•  Y2ClipPosition—Specifies the second Y parameter for defining the clip position. Use the method pfcExport.PrintPlacementOption.SetY2ClipPosition to set this option.
Model Options
The model options for printing purpose are defined in the pfcExport.PrintMdlOption object.
Methods Introduced:
The method pfcExport.pfcExport.PrintMdlOption_Create creates a new instance of the pfcExport.PrintMdlOption object.
The method pfcSession.BaseSession.GetPrintMdlOptions retrieves the model options.
The pfcExport.PrintMdlOption object contains the following options:
•  DrawFormat—Displays the drawing format used for printing. Use the method pfcExport.PrintMdlOption.SetDrawFormat to set this option.
•  FirstPage—Specifies the first page number. Use the method pfcExport.PrintMdlOption.SetFirstPage to set this option.
•  LastPage—Specifies the last page number. Use the method pfcExport.PrintMdlOption.SetLastPage to set this option.
•  LayerName—Specifies the name of the layer. Use the method pfcExport.PrintMdlOption.SetLayerName to set the name.
•  LayerOnly—Prints the specified layer only. Set this option to true to print the specified layer. Use the method pfcExport.PrintMdlOption.SetLayerOnly to set this option.
•  Mdl—Specifies the model to be printed. Use the method pfcExport.PrintMdlOption.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 method pfcExport.PrintMdlOption.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 pfcExport.PrintMdlOption.SetSegmented to set this option.
•  Sheets—Specifies the sheets that need to be printed in terms of the pfcExport.PrintSheets class. Use the method pfcExport.PrintMdlOption.SetSheets to specify the sheets. The sheets can be of the following types:
  PRINT_CURRENT_SHEET—Only the current sheet is printed.
  PRINT_ALL_SHEETS—All the sheets are printed.
  PRINT_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 pfcExport.PrintMdlOption.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 pfcExport.PrintMdlOption.SetUseSolidScale to set this option.
Plotter Configuration File (PCF) Options
The printing options for PCF file are defined in the Export.PrinterPCFOptions object.
Methods Introduced:
The method pfcExport.pfcExport.PrinterPCFOptions_Create creates a new instance of the pfcExport.PrinterPCFOptions object.
The pfcExport.PrinterPCFOptions object contains the following options:
•  PrinterOption—Specifies the printer settings for printing a file in terms of the pfcExport.PrintPrinterOption object. Set this attribute using the method pfcExport.PrinterPCFOptions.SetPrinterOption.
•  PlacementOption—Specifies the placement options for printing purpose in terms of the pfcExport.PrintMdlOption object. Set this attribute using the method pfcExport.PrinterPCFOptions.SetPlacementOption.
•  ModelOption—Specifies the model options for printing purpose in terms of the pfcExport.PrintPlacementOption object. Set this attribute using the method pfcExport.PrinterPCFOptions.SetModelOption.
Automatic Printing of 3D Models
Creo Object TOOLKIT Java provides the capability of automatically creating and plotting a drawing of a solid model. The Creo Object TOOLKIT Java application needs only to supply instructions for the print activity, and Creo Parametric 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:
  • wfcQuickPrint.wfcQuickPrint.QuickPrintGeneralViewInsructions_Create
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.GetGeneralViewLocation
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.SetGeneralViewLocation
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.GetScale
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.SetScale
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.GetViewDisplayStyle
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.SetViewDisplayStyle
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.GetViewName
  • wfcQuickPrint.QuickPrintGeneralViewInsructions.SetViewName
  • wfcQuickPrint.wfcQuickPrint.QuickPrintInstructions_Create
  • wfcQuickPrint.QuickPrintInstructions.GetDrawingTemplate
  • wfcQuickPrint.QuickPrintInstructions.SetDrawingTemplate
  • wfcQuickPrint.QuickPrintInstructions.GetGeneralViewInstructions
  • wfcQuickPrint.QuickPrintInstructions.SetGeneralViewInstructions
  • wfcQuickPrint.QuickPrintInstructions.GetLayoutType
  • wfcQuickPrint.QuickPrintInstructions.SetLayoutType
  • wfcQuickPrint.QuickPrintInstructions.GetManualLayoutType
  • wfcQuickPrint.QuickPrintInstructions.SetManualLayoutType
  • wfcQuickPrint.QuickPrintInstructions.GetOrientation
  • wfcQuickPrint.QuickPrintInstructions.SetOrientation
  • wfcQuickPrint.QuickPrintInstructions.GetPaperSize
  • wfcQuickPrint.QuickPrintInstructions.SetPaperSize
  • wfcQuickPrint.QuickPrintInstructions.GetPrintFlatToScreen
  • wfcQuickPrint.QuickPrintInstructions.SetPrintFlatToScreen
  • wfcQuickPrint.QuickPrintInstructions.GetProjectionViewLocations
  • wfcQuickPrint.QuickPrintInstructions.SetProjectionViewLocations
  • The method wfcQuickPrint.wfcQuickPrint.QuickPrintGeneralView
    Insructions_Create
    creates a new instance of the wfcQuickPrintGeneralViewInsructions object that contains the quick drawing print instructions for general view.
    The methods wfcQuickPrint.QuickPrintGeneralViewInsructions.
    GetGeneralViewLocation
    and wfcQuickPrint.QuickPrintGeneralViewInsructions.
    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 wfcQuickPrint.QuickPrintGeneralViewLocation:
    •  QPRINT_PROJ_GENVIEW_MAIN
    •  QPRINT_PROJ_GENVIEW_NW
    •  QPRINT_PROJ_GENVIEW_SW
    •  QPRINT_PROJ_GENVIEW_SE
    •  QPRINT_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 wfcQuickPrint.QuickPrintGeneralViewInsructions.GetScale and wfcQuickPrint.QuickPrintGeneralViewInsructions.SetScale get and set the view scale.
    The methods wfcQuickPrint.QuickPrintGeneralViewInsructions.GetViewDisplayStyle and wfcQuickPrint.QuickPrintGeneralViewInsructions.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 wfcQuickPrint.QuickPrintGeneralViewInsructions.GetViewName and wfcQuickPrint.QuickPrintGeneralViewInsructions.SetViewName get and set the saved view name.
    The method wfcQuickPrint.wfcQuickPrint.QuickPrintInstructions_Create creates a new instance of the wfcQuickPrintInstructions object that contains the quick drawing print instructions.
    The methods wfcQuickPrint.QuickPrintInstructions.GetDrawingTemplate and wfcQuickPrint.QuickPrintInstructions.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 wfcQuickPrint.QuickPrintInstructions.GetGeneralViewInstructions and wfcQuickPrint.QuickPrintInstructions.SetGeneralViewInstructions get and set the quick drawing print instructions for general view using the object wfcQuickPrintGeneralViewInsructions.
    Use the methods wfcQuickPrint.QuickPrintInstructions.GetLayoutType and wfcQuickPrint.QuickPrintInstructions.SetLayoutType to get and set the layout type for print operation. You can set the layout type using the enumerated type wfcQuickPrint.QuickPrintLayoutType:
    •  QPRINT_LAYOUT_PROJ—Specifies a projected view-type layout.
    •  QPRINT_LAYOUT_MANUAL—Specifies a manually arranged layout.
    •  QPRINT_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 wfcQuickPrint.QuickPrintInstructions.GetManualLayoutType and wfcQuickPrint.QuickPrintInstructions.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 wfcQuickPrint.QuickPrintManual3View. The layout can be of the following types:
    •  QPRINTMANUAL_3VIEW_1_23VERT
    •  QPRINTMANUAL_3VIEW_23_VERT1
    •  QPRINTMANUAL_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 wfcQuickPrint.QuickPrintInstructions.GetOrientation and wfcQuickPrint.QuickPrintInstructions.SetOrientation allow you to get and set the sheet orientation for the quick print operation. You can set the orientation using the enumerated type wfcQuickPrint.QuickPrintOrientation:
    •  QPRINT_ORIENTATION_PORTRAIT
    •  QPRINT_ORIENTATION_LANDSCAPE
    The methods wfcQuickPrint.QuickPrintInstructions.GetPaperSize and wfcQuickPrint.QuickPrintInstructions.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 wfcQuickPrint.QuickPrintInstructions.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 wfcQuickPrint.QuickPrintInstructions.GetProjectionViewLocations and wfcQuickPrint.QuickPrintInstructions.SetProjectionViewLocations get and set the projected views to be included in the print operation. The methods define the projected views using the object wfcQuickPrint.QuickPrintProjectionViewLocations. These methods are applicable only to views with layout type wfcQPRINT_LAYOUT_PROJ. You can set the following projections types using the enumerated type wfcQuickPrint.QuickPrintProjectionViewLocations:
    •  QPRINT_PROJ_TOP_VIEW
    •  QPRINT_PROJ_RIGHT_VIEW
    •  QPRINT_PROJ_LEFT_VIEW
    •  QPRINT_PROJ_BOTTOM_VIEW
    •  QPRINT_PROJ_BACK_NORTH
    •  QPRINT_PROJ_BACK_EAST
    •  QPRINT_PROJ_BACK_SOUTH
    •  QPRINT_PROJ_BACK_WEST
    Solid Operations
    Method Introduced:
    The method pfcSolid.Solid.CreateImportFeat creates a new import feature in the solid and takes the following input arguments:
    •  IntfData—The source of data from which to create the import feature. It is given by the pfcModel.IntfDataSource object. The type of source data that can be imported is given by the pfcModel.IntfType class and can be of the following types:
      INTF_NEUTRAL
      INTF_NEUTRAL_FILE
      INTF_IGES
      INTF_STEP
      INTF_VDA
      INTF_ICEM
      INTF_ACIS
      INTF_DXF
      INTF_CDRS
      INTF_STL
      INTF_VRML
      INTF_PARASOLID
      INTF_AI
      INTF_CATIA_PART
      INTF_UG
      INTF_PRODUCTVIEW
      INTF_CATIA_CGR
      INTF_JT
      INTF_INVENTOR_PART
      INTF_INVENTOR_ASM
      INTF_IBL
      INTF_PTS
      INTF_SE_PART
      INTF_SE_SHEETMETAL_PART
    •  CoordSys—The pointer to a reference coordinate system. If this is NULL, the function uses the default coordinate system.
    •  FeatAttr—The attributes for creation of the new import feature given by the pfcModel.ImportFeatAttr object. If this pointer is NULL, the function uses the default attributes.
    The method wfcSolid.WSolid.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 IntfDataSource object. The type of source data that can be imported is given by the enumerated data type pfcModel.IntfType.
      For the interface data, the data source is specified as a WIntfNeutral object. Refer to the section Extracting Interface Data for Neutral Files, for more information on WIntfNeutral 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 wfcSession.WSession.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.Window.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:
  • wfcModel.IntfIBL_Create
  • wfcModel.IntfInventorAsm_Create
  • wfcModel.IntfInventorPart_Create
  • wfcModel.IntfPTS_Create
  • wfcModel.IntfSEdgePart_Create
  • wfcModel.IntfSEdgeSheetmetal_Create
  • Use the method wfcModel.IntfIBL_Create to create a new object that represents the IBL file that creates an import feature.
    Use the method wfcModel.IntfInventorAsm_Create to create a new object that represents the Inventor Assembly file that creates an import feature.
    Use the method wfcModel.IntfInventorPart_Create to create a new object that represents the Inventor pat file that creates an import feature.
    Use the method wfcModel.IntfPTS_Create to create a new object that represents the PTS file that creates an import feature.
    Use the method wfcModel.IntfSEdgePart_Create to create a new object that represents the solid Edge part file that creates an import feature.
    Use the method wfcModel.IntfSEdgeSheetmetal_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.WSolid.ImportAsFeat.