Category 3D interface, Object ProProductview

Function ProProductviewFormattedMdlnameExport


Description
Exports a part, assembly or drawing to a user-specified Creo View format. Note: In Creo 3 this function does not support names longer than 31 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProMdlName will be added in a future release.
Replacement in Object TOOLKIT: pfcModel::Export
Synopsis
#include <ProUtil.h>
ProErrorProProductviewFormattedMdlnameExport(
ProMdl mdl
/* (In)
The model handle. If mdl is a drawing, it must be displayed in a window. Depending upon the model type and export options, following output files are created:

    PRO_PV_FORMAT_PVS:

  • Part : .pvs file, .ol file
  • Assembly : .pvs file, separate .ol file for each part contained in the assembly
  • Drawing : .pvs file, .plt file

    PRO_PV_FORMAT_ED:

  • Part : .ed file, .ol file
  • Assembly : .ed file, separate .ol file for each part contained in the assembly
  • Drawing : .ed file, .plt file

    PRO_PV_FORMAT_EDZ: .edz file

    PRO_PV_FORMAT_PVZ: .pvz file

*/
ProPath export_dir
/* (In)
The location where the export file(s) will be produced. If NULL, the Creo Parametric working directory is used.
*/
ProMdlName filename
/* (In)
The root of the filename to export (without the extension). If NULL, the Creo Parametric model name is used as the root.
*/
ProProductviewExportOptions opts
/* (In)
The export options handle.
*/
)
Returns
PRO_TK_NO_ERRORThe export succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments is invalid.
PRO_TK_NOT_DISPLAYEDModel not displayed in any window.
PRO_TK_E_NOT_FOUNDpro2prod_view.dll not found
PRO_TK_BAD_CONTEXTpro2prod_view.dll could not be loaded and/or
Design Test Mode is activethe function is not available in this mode.

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  2. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  3. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions
  4. Interface: Data Exchange: Exporting 2D Models
  5. Interface: Data Exchange: Example 1 Publishing a Drawing
  6. Interface: Data Exchange: Exporting 3D Models