Interface
This section describes various methods of importing and exporting files in Web.Link.
Exporting Files and 2D Models
Method Introduced:
  • pfcModel.Export()
  • The method pfcModel.Export() exports model data to a file. The exported files are placed in the current Creo Parametric 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 Web.Link APIWizard and online help for the Creo Parametric interface.
    Export Instructions
    Methods Introduced:
  • pfcRelationExportInstructions.Create()
  • pfcModelInfoExportInstructions.Create()
  • pfcProgramExportInstructions.Create()
  • pfcIGESFileExportInstructions.Create()
  • pfcDXFExportInstructions.Create()
  • pfcRenderExportInstructions.Create()
  • pfcSTLASCIIExportInstructions.Create()
  • pfcSTLBinaryExportInstructions.Create()
  • pfcBOMExportInstructions.Create()
  • pfcDWGSetupExportInstructions.Create()
  • pfcFeatInfoExportInstructions.Create()
  • pfcMFGFeatCLExportInstructions.Create()
  • pfcMFGOperCLExportInstructions.Create()
  • pfcMaterialExportInstructions.Create()
  • pfcCGMFILEExportInstructions.Create()
  • pfcInventorExportInstructions.Create()
  • pfcFIATExportInstructions.Create()
  • pfcConnectorParamExportInstructions.Create()
  • pfcCableParamsFileInstructions.Create()
  • pfcCATIAFacetsExportInstructions.Create()
  • pfcVRMLModelExportInstructions.Create()
  • pfcSTEP2DExportInstructions.Create()
  • pfcMedusaExportInstructions.Create()
  • pfcCADDSExportInstructions.Create()
  • pfcSliceExportData.Create()
  • pfcNEUTRALFileExportInstructions.Create()
  • pfcProductViewExportInstructions.Create()
  • pfcBaseSession.ExportDirectVRML()
  • Export Instructions Table
    Class
    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 NC sequence in a manufacturing assembly
    pfcMfgOperClExportInstructions
    A cutter location (CL) file for all the 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
    pfcCATIAFacetsExportInstructions
    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 Parametric part to neutral format
    pfcProductViewExportInstructions
    A part, assembly, or drawing in Creo View format
    pfcSliceExportData
    A slice export format
    Note
    The New Instruction Classes replace the following Deprecated Classes:
    Deprecated Classes
    New Instruction Classes
    pfcSTEPExportInstructions
    pfcSTEP3DExportInstructions
    pfcVDAExportInstructions
    pfcVDA3DExportInstructions
    pfcIGES3DExportInstructions
    pfcIGES3DNewExportInstructions
    Exporting Drawing Sheets
    The options required to export multiple sheets of a drawing are given by the pfcExport2DOption object.
    Methods Introduced:
  • pfcExport2DOption.Create()
  • pfcExport2DOption.ExportSheetOption
  • pfcExport2DOption.ModelSpaceSheet
  • pfcExport2DOption.Sheets
  • The method pfcExport2DOption.Create() creates a new instance of the pfcExport2DOption object. This object contains the following options:
    •  ExportSheetOption—Specifies the option for exporting multiple drawing sheets. Use the property pfcExport2DOption.ExportSheetOption to set the option for exporting multiple drawing sheets. The options are given by the pfcExport2DSheetOption 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 property pfcExport2DOption.ModelSpaceSheet 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 property pfcExport2DOption.Sheets to set this option.
    Exporting to Faceted Formats
    The methods described in this section support the export of Creo Parametric drawings and solid models to faceted formats like CATIA CGR.
    Methods Introduced:
  • pfcTriangulationInstructions.AngleControl
  • pfcTriangulationInstructions.ChordHeight
  • pfcTriangulationInstructions.StepSize
  • pfcTriangulationInstructions.FacetControlOptions
  • The property pfcTriangulationInstructions.AngleControl and pfcTriangulationInstructions.AngleControl 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 property pfcTriangulationInstructions.ChordHeight and pfcTriangulationInstructions.ChordHeight to get and set the chord height for the exported facet drawings and models.
    The methods pfcTriangulationInstructions.StepSize and pfcTriangulationInstructions.StepSize 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 property pfcTriangulationInstructions.StepSize 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 property pfcTriangulationInstructions.FacetControlOptions control the facet export options using bit flags. You can set the bit flags using the pfcFacetControlFlag 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 Parametric user interface are used during the export operation.
    •  FACET_CHORD_HEIGHT_DEFAULT—Uses the default value set in the Creo Parametric user interface for the chord height.
    •  FACET_ANGLE_CONTROL_DEFAULT—Uses the default value set in the Creo Parametric user interface for the angle control.
    •  FACET_STEP_SIZE_DEFAULT—Uses the default value set in the Creo Parametric 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 pfcFACET_FORCE_INTO_RANGE is not applied on that parameter.
    •  FACET_STEP_SIZE_FACET_INCLUDE_QUILTS—Includes quilts in the export of Creo Parametric model to the specified format.
    •  EXPORT_INCLUDE_ANNOTATIONS—Includes annotations in the export of Creo Parametric model to the specified format.
    Note
    To include annotations, during the export of Creo Parametric 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:
  • pfcCoordSysExportInstructions.CsysName
  • pfcCoordSysExportInstructions.Quality
  • pfcCoordSysExportInstructions.MaxChordHeight
  • pfcCoordSysExportInstructions.AngleControl
  • pfcCoordSysExportInstructions.GetSliceExportData()
  • pfcCoordSysExportInstructions.SetSliceExportData()
  • pfcCoordSysExportInstructions.StepSize
  • pfcCoordSysExportInstructions.FacetControlOptions
  • pfcSelection.SetIntf3DCsys()
  • The property pfcCoordSysExportInstructions.CsysName 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 property pfcCoordSysExportInstructions.Quality can be used instead of pfcCoordSysExportInstructions.MaxChordHeight and pfcCoordSysExportInstructions.AngleControl . 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 property pfcCoordSysExportInstructions.MaxChordHeight 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 property pfcCoordSysExportInstructions.AngleControl 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 pfcCoordSysExportInstructions.GetSliceExportData() and pfcCoordSysExportInstructions.SetSliceExportData() get and set the pfcSliceExportData 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 property pfcSliceExportData.CompIds to work with the component IDs.
    The property pfcCoordSysExportInstructions.StepSize 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 property pfcCoordSysExportInstructions.FacetControlOptions control the facet export options using bit flags. You can set the bit flags using the pfcFacetControlFlag object. For more information on the bit flag values, please refer to the section Exporting to Faceted Formats.
    The function 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 Parametric 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 Parametric 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 Parametric 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:
  • pfcPDFExportInstructions.Create()
  • pfcPDFExportInstructions.FilePath
  • pfcPDFExportInstructions.Options
  • pfcPDFExportInstructions.ProfilePath
  • pfcPDFOption.Create()
  • pfcPDFOption.OptionType
  • pfcPDFOption.OptionValue
  • The method pfcPDFExportInstructions.Create() creates a new instance of the pfcPDFExportInstructions data object that describes how to export Creo Parametric 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 property pfcPDFExportInstructions.FilePath 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 enumerated class. Set this option using the property pfcPDFOption.OptionType.
      OptionValue—Specifies the value of the option in terms of the pfcArgValue object. Set this option using the property pfcPDFOption.OptionValue.
    Use the property pfcPDFExportInstructions.Options to set the collection of PDF export options.
    •  ProfilePath—Specifies the export profile path. Use the property pfcPDFExportInstructions.ProfilePath to set the profile path. When you set the profile path, the PDF export options set in the data object pfcPDFExportInstructions data object 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 enumerated 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 pfcPDFFontStrokeMode enumerated 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 pfcPDFColorDepth enumerated 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 pfcPDFHiddenLineMode enumerated 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 pfcPDFLayerMode enumerated 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 pfcPDFParameterMode enumerated 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 pfcPDFRestrictOperationsMode enumerated 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 pfcPDFPrintingMode enumerated 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 pfcPDFRestrictOperationsMode enumerated class. The default value is true.
    •  PDFOPT_PENTABLE—If true, uses the standard Creo Parametric 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 pfcPDFLinecap enumerated 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 pfcPDFLinejoin enumerated 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 Parametric drawing that are to be exported to PDF. It is given by the pfcPrintSheets 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 pfcPDFExportMode enumerated 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 pfcPDFOptionType enumerated 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 pfcPDFU3DLightingMode enumerated class.
    •  PDFOPT_RENDER_STYLE_DEFAULT—Enables you to set the default rendering style used while exporting Creo Parametric 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 pfcPDFU3DRenderMode enumerated class.
    •  PDFOPT_SIZE—Allows you to specify the page size of the exported PDF file. The values for this option are given by the pfcPlotPaperSize enumerated 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 pfcSheetOrientation enumerated 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 pfcPDFSelectedViewMode enumerated 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 pfcPDFSaveMode enumerated 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 pfcPDFLayerMode 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
    Web.Link allows you to export three dimensional geometry to various formats.
    Export Instructions
    Methods and Properties Introduced:
  • pfcModel.ExportIntf3D()
  • pfcBaseSession.ExportProfileLoad()
  • pfcGeometryFlags.Create()
  • pfcInclusionFlags.Create()
  • pfcLayerExportOptions.Create()
  • pfcTriangulationInstructions.Create()
  • 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.
    •  Export3DInstructions
    •  ACIS3DExportInstructions
    •  CATIAModel3DExportInstructions
    •  CATIASession3DExportInstructions
    •  CatiaPart3DExportInstructions
    •  CatiaProduct3DExportInstructions
    •  CatiaCGR3DExportInstructions
    •  DXF3DExportInstructions
    •  DWG3DExportInstructions
    •  IGES3DNewExportInstructions
    •  JT3DExportInstructions
    •  ParaSolid3DExportInstructions
    •  STEP3DExportInstructions
    •  SWPart3DExportInstructions
    •  SWAsm3DExportInstructions
    •  UG3DExportInstructions
    •  VDA3DExportInstructions
    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:
  • pfcBaseSession.IsConfigurationSupported()
  • pfcBaseSession.IsGeometryRepSupported()
  • 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 method pfcModel.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 assembly 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:
  • pfcSolid.ExportShrinkwrap()
  • 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 class given in the following table to create the required type of shrinkwrap. All the classes 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
    Class to Use
    Surface Subset
    pfcShrinkwrapSurfaceSubsetInstructions
    Faceted Part
    pfcShrinkwrapFacetedPartInstructions
    Faceted VRML
    pfcShrinkwrapFacetedVRMLInstructions
    Faceted STL
    pfcShrinkwrapFacetedSTLInstructions
    Merged Solid
    pfcShrinkwrapMergedSolidInstructions
    Setting Shrinkwrap Options
    The class 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.
    Properties Introduced:
  • pfcShrinkwrapModelExportInstructions.Method
  • pfcShrinkwrapModelExportInstructions.Quality
  • pfcShrinkwrapModelExportInstructions.AutoHoleFilling
  • pfcShrinkwrapModelExportInstructions.IgnoreSkeleton
  • pfcShrinkwrapModelExportInstructions.IgnoreQuilts
  • pfcShrinkwrapModelExportInstructions.AssignMassProperties
  • pfcShrinkwrapModelExportInstructions.IgnoreSmallSurfaces
  • pfcShrinkwrapModelExportInstructions.SmallSurfPercentage
  • pfcShrinkwrapModelExportInstructions.DatumReferences
  • The property pfcShrinkwrapModelExportInstructions.Method 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 property pfcShrinkwrapModelExportInstructions.Quality 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. The default value is 1.
    The property pfcShrinkwrapModelExportInstructions.AutoHoleFilling sets a flag that forces Creo Parametric to identify all holes and surfaces that intersect a single surface and fills those holes during shrinkwrap. The default value is true.
    The property pfcShrinkwrapModelExportInstructions.IgnoreSkeleton determine s whether the skeleton model geometry must be included in the shrinkwrap model.
    The property pfcShrinkwrapModelExportInstructions.IgnoreQuilts and determines whether external quilts must be included in the shrinkwrap model.
    The property pfcShrinkwrapModelExportInstructions.AssignMassProperties assigns 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 propertypfcShrinkwrapModelExportInstructions.IgnoreSmallSurfaces sets a flag that forces Creo Parametric 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 propertypfcShrinkwrapModelExportInstructions.SmallSurfPercentage.
    The pfcShrinkwrapModelExportInstructions.DatumReferences specifies and selects the datum planes, points, curves, axes, and coordinate system references to be included in the shrinkwrap model.
    Surface Subset Options
    Methods and Properties Introduced:
  • pfcShrinkwrapSurfaceSubsetInstructions.Create()
  • pfcShrinkwrapSurfaceSubsetInstructions.AdditionalSurfaces
  • pfcShrinkwrapSurfaceSubsetInstructions.OutputModel
  • 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 property pfcShrinkwrapSurfaceSubsetInstructions.AdditionalSurfaces selects individual surfaces to be included in the shrinkwrap model.
    The property pfcShrinkwrapSurfaceSubsetInstructions.OutputModel sets the template model.
    Faceted Solid Options
    The pfcShrinkwrapFacetedFormatInstructions class consists of the following types:
    •  SWFACETED_PARTCreo Parametric 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 class.
    Properties Introduced:
  • pfcShrinkwrapFacetedFormatInstructions.Format
  • pfcShrinkwrapFacetedFormatInstructions.FramesFile
  • The property pfcShrinkwrapFacetedFormatInstructions.Format returns the the output file format of the shrinkwrap model.
    The property pfcShrinkwrapFacetedFormatInstructions.FramesFile enables 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 and Properties Introduced:
  • pfcShrinkwrapFacetedPartInstructions.Create()
  • pfcShrinkwrapFacetedPartInstructions.Lightweight
  • 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 Parametric part.
    The property pfcShrinkwrapFacetedPartInstructions.Lightweight specifies if the Creo Parametric part is exported as a light weight faceted geometry.
    VRML Export Options
    Methods and Properties Introduced:
  • pfcShrinkwrapVRMLInstructions.Create()
  • pfcShrinkwrapVRMLInstructions.OutputFile
  • 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 property pfcShrinkwrapVRMLInstructions.OutputFile specifies the name of the output file to be created.
    STL Export Options
    Methods and Properties Introduced:
  • pfcShrinkwrapVRMLInstructions.Create()
  • pfcShrinkwrapVRMLInstructions.OutputFile
  • 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 property pfcShrinkwrapVRMLInstructions.OutputFile specifies the name of the output file to be created.
    Merged Solid Options
    Methods and Properties Introduced:
  • pfcShrinkwrapMergedSolidInstructions.Create()
  • pfcShrinkwrapMergedSolidInstructions.AdditionalComponents
  • 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 property pfcShrinkwrapMergedSolidInstructions.AdditionalComponents specifies individual components of the assembly to be merged into the shrinkwrap model.
    Importing Files
    Method Introduced:
  • pfcModel.Import()
  • The method pfcModel.Import() reads a file into Creo Parametric. The format must be the same as it would be if these files were created by Creo Parametric. 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:
  • pfcRelationImportInstructions.Create()
  • pfcIGESSectionImportInstructions.Create()
  • pfcProgramImportInstructions.Create()
  • pfcConfigImportInstructions.Create()
  • pfcDWGSetupImportInstructions.Create()
  • pfcSpoolImportInstructions.Create()
  • pfcConnectorParamsImportInstructions.Create()
  • pfcASSEMTreeCFGImportInstructions.Create()
  • pfcWireListImportInstructions.Create()
  • pfcCableParamsImportInstructions.Create()
  • pfcSTEPImport2DInstructions.Create()
  • pfcIGESImport2DInstructions.Create()
  • pfcDXFImport2DInstructions.Create()
  • pfcDWGImport2DInstructions.Create()
  • The methods described in this section create an instructions data object to import a file of a specified type into Creo Parametric. The details are as shown in the table below:
    Class
    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:
  • pfcBaseSession.Import2DModel()
  • 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 classpfcImport2DInstructions 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:
  • pfcBaseSession.GetImportSourceType()
  • pfcBaseSession.ImportNewModel()
  • 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:
      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
    •  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.
    Plotting Files
    From Pro/ENGINEER Wildfire 5.0 onwards, the pfcPlotInstructions object containing the instructions for plotting files has been deprecated. All the methods listed below for creating and accessing the instruction attributes in pfcPlotInstructions have also been deprecated. Use the new interface type pfcPrinterInstructions and its methods described in the next section.
    Methods and Properties Deprecated:
  • pfcPlotInstructions.Create()
  • pfcPlotInstructions.PlotterName
  • pfcPlotInstructions.OutputQuality
  • pfcPlotInstructions.UserScale
  • pfcPlotInstructions.PenSlew
  • pfcPlotInstructions.PenVelocityX
  • pfcPlotInstructions.PenVelocityY
  • pfcPlotInstructions.SegmentedOutput
  • pfcPlotInstructions.LabelPlot
  • pfcPlotInstructions.SeparatePlotFiles
  • pfcPlotInstructions.PaperSize
  • pfcPlotInstructions.PageRangeChoice
  • pfcPlotInstructions.PaperSizeX
  • pfcPlotInstructions.FirstPage
  • pfcPlotInstructions.LastPage
  • Printing Files
    The printer instructions for printing a file are defined in pfcPrinterInstructions data object.
    Methods and Properties Introduced:
  • pfcPrinterInstructions.Create()
  • pfcPrinterInstructions.PrinterOption
  • pfcPrinterInstructions.PlacementOption
  • pfcPrinterInstructions.ModelOption
  • pfcPrinterInstructions.WindowId
  • 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 property pfcPrinterInstructions.PrinterOption.
    •  PlacementOption—Specifies the placement options for printing purpose in terms of the pfcPrintMdlOption object. Set this attribute using the property pfcPrinterInstructions.PlacementOption.
    •  ModelOption—Specifies the model options for printing purpose in terms of the pfcPrintPlacementOption object. Set this attribute using the property pfcPrinterInstructions.ModelOption.
    •  WindowId—Specifies the current window identifier. Set this attribute using the property pfcPrinterInstructions.WindowId.
    Printer Options
    The printer settings for printing a file are defined in the pfcPrintPrinterOption object.
    Methods and Properties Introduced:
  • pfcPrintPrinterOption.Create()
  • pfcBaseSession.GetPrintPrinterOptions()
  • pfcPrintPrinterOption.DeleteAfter
  • pfcPrintPrinterOption.FileName
  • pfcPrintPrinterOption.PaperSize
  • pfcPrintSize.Create()
  • pfcPrintSize.Height
  • pfcPrintSize.Width
  • pfcPrintSize.PaperSize
  • pfcPrintPrinterOption.PenTable
  • pfcPrintPrinterOption.PrintCommand
  • pfcPrintPrinterOption.PrinterType
  • pfcPrintPrinterOption.Quantity
  • pfcPrintPrinterOption.RollMedia
  • pfcPrintPrinterOption.RotatePlot
  • pfcPrintPrinterOption.SaveMethod
  • pfcPrintPrinterOption.SaveToFile
  • pfcPrintPrinterOption.SendToPrinter
  • pfcPrintPrinterOption.Slew
  • pfcPrintPrinterOption.SwHandshake
  • pfcPrintPrinterOption.UseTtf
  • 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 property pfcPrintPrinterOption.DeleteAfter to assign this option.
    •  FileName—Specifies the name of the file to be printed. Use the property pfcPrintPrinterOption.FileName 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 property pfcPrintPrinterOption.PaperSize 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 property pfcPrintSize.Height to set the paper height.
      Width—Specifies the width of paper. Use the property pfcPrintSize.Width to set the paper width.
      PaperSize—Specifies the size of the paper used for the plot in terms of the pfcPlotPaperSize object. Use the property pfcPrintSize.PaperSize 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 property pfcPrintPrinterOption.PenTable to set this option.
    •  PrintCommand—Specifies the command to be used for printing. Use the property pfcPrintPrinterOption.PrintCommand to set the command.
    •  PrinterType—Specifies the printer type. Use the property pfcPrintPrinterOption.PrinterType to assign the type.
    •  Quantity—Specifies the number of copies to be printed. Use the property pfcPrintPrinterOption.Quantity 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 property pfcPrintPrinterOption.RollMedia to assign this option.
    •  RotatePlot—Determines if the plot is rotated by 90 degrees. Set it to true to rotate the plot. Use the property pfcPrintPrinterOption.RotatePlot to set this option.
    •  SaveMethod—Specifies the save method in terms of the pfcPrintSaveMethod enumerated class. Use the property pfcPrintPrinterOption.SaveMethod 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 property pfcPrintPrinterOption.SaveToFile 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 property pfcPrintPrinterOption.SendToPrinter to set this option.
    •  Slew—Specifies the speed of the pen in centimeters per second in X and Y direction. Use the property pfcPrintPrinterOption.Slew 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 property pfcPrintPrinterOption.SwHandshake 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 property pfcPrintPrinterOption.UseTtf to set this option.
    Placement Options
    The placement options for printing purpose are defined in the pfcPrintPlacementOption object.
    Methods Introduced:
  • pfcPrintPlacementOption.Create()
  • pfcBaseSession.GetPrintPlacementOptions()
  • pfcPrintPlacementOption.BottomOffset
  • pfcPrintPlacementOption.ClipPlot
  • pfcPrintPlacementOption.KeepPanzoom
  • pfcPrintPlacementOption.LabelHeight
  • pfcPrintPlacementOption.PlaceLabel
  • pfcPrintPlacementOption.Scale
  • pfcPrintPlacementOption.ShiftAllCorner
  • pfcPrintPlacementOption.SideOffset
  • pfcPrintPlacementOption.X1ClipPosition
  • pfcPrintPlacementOption.X2ClipPosition
  • pfcPrintPlacementOption.Y1ClipPosition
  • pfcPrintPlacementOption.Y2ClipPosition
  • 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 property pfcPrintPlacementOption.BottomOffset 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 property pfcPrintPlacementOption.ClipPlot 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 property pfcPrintPlacementOption.KeepPanzoom to set this option.
    •  LabelHeight—Specifies the height of the label in inches. Use the property pfcPrintPlacementOption.LabelHeight to set this option.
    •  PlaceLabel—Specifies whether you want to place the label on the plot. Use the property pfcPrintPlacementOption.PlaceLabel to set this option.
    •  Scale—Specifies the scale used for the plot. Use the property pfcPrintPlacementOption.Scale 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 property pfcPrintPlacementOption.ShiftAllCorner to set this option.
    •  SideOffset—Specifies the offset from the sides. Use the property pfcPrintPlacementOption.SideOffset to set this option.
    •  X1ClipPosition—Specifies the first X parameter for defining the clip position. Use the property pfcPrintPlacementOption.X1ClipPosition to set this option.
    •  X2ClipPosition—Specifies the second X parameter for defining the clip position. Use the property pfcPrintPlacementOption.X2ClipPosition to set this option.
    •  Y1ClipPosition—Specifies the first Y parameter for defining the clip position. Use the property pfcPrintPlacementOption.Y1ClipPosition to set this option.
    •  Y2ClipPosition—Specifies the second Y parameter for defining the clip position. Use the property pfcPrintPlacementOption.Y2ClipPosition to set this option.
    Model Options
    The model options for printing purpose are defined in the pfcPrintMdlOption object.
    Methods Introduced:
  • pfcPrintMdlOption.Create()
  • pfcBaseSession.GetPrintMdlOptions()
  • pfcPrintMdlOption.DrawFormat
  • pfcPrintMdlOption.FirstPage
  • pfcPrintMdlOption.LastPage
  • pfcPrintMdlOption.LayerName
  • pfcPrintMdlOption.LayerOnly
  • pfcPrintMdlOption.Mdl
  • pfcPrintMdlOption.Quality
  • pfcPrintMdlOption.Segmented
  • pfcPrintMdlOption.Sheets
  • pfcPrintMdlOption.UseDrawingSize
  • pfcPrintMdlOption.UseSolidScale
  • 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 property pfcPrintMdlOption.DrawFormat to set this option.
    •  FirstPage—Specifies the first page number. Use the property pfcPrintMdlOption.FirstPage to set this option.
    •  LastPage—Specifies the last page number. Use the property pfcPrintMdlOption.LastPage to set this option.
    •  LayerName—Specifies the name of the layer. Use the property pfcPrintMdlOption.LayerName to set the name.
    •  LayerOnly—Prints the specified layer only. Set this option to true to print the specified layer. Use the property pfcPrintMdlOption.LayerOnly to set this option.
    •  Mdl—Specifies the model to be printed. Use the property pfcPrintMdlOption.Mdl 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 property pfcPrintMdlOption.Quality 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 property pfcPrintMdlOption.Segmented to set this option.
    •  Sheets—Specifies the sheets that need to be printed in terms of the pfcPrintSheets class. Use the property pfcPrintMdlOption.Sheets 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 property pfcPrintMdlOption.UseDrawingSize 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 property pfcPrintMdlOption.UseSolidScale to set this option.
    Plotter Configuration File (PCF) Options
    The printing options for PCF file are defined in the pfcPrinterPCFOptions object.
    Methods Introduced:
  • pfcPrinterPCFOptions.Create()
  • pfcPrinterPCFOptions.PrinterOption
  • pfcPrinterPCFOptions.PlacementOption
  • pfcPrinterPCFOptions.ModelOption
  • 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 property pfcPrinterPCFOptions.PrinterOption.
    •  PlacementOption—Specifies the placement options for printing purpose in terms of the pfcPrintMdlOption object. Set this attribute using the property pfcPrinterPCFOptions.PlacementOption.
    •  ModelOption—Specifies the model options for printing purpose in terms of the pfcPrintPlacementOption object. Set this attribute using the property pfcPrinterPCFOptions.ModelOption.
    Solid Operations
    Method Introduced:
  • pfcSolid.CreateImportFeat()
  • The method pfcSolid.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 pfcIntfDataSource object. The type of source data that can be imported is given by the pfcIntfType 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
    •  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 coordinateImportFeatAttr object. If this pointer is NULL, the function uses the default attributes.
    Example Code: Returning a Feature Object
    The sample code in the file pfcImportFeatureExample.js located at <creo_weblink_loadpoint>/weblinkexamples/jscript return a feature object when provided with a solid coordinate system name and an import feature's file name. The method will find the coordinate system in the model, set the Import Feature Attributes, and create an import feature. The feature is then returned.
    Window Operations
    Method Introduced:
  • pfcWindow.ExportRasterImage()
  • The method pfcWindow.ExportRasterImage() outputs a standard Creo Parametric raster output file.