Category 3D interface, Object ProProductview

Function ProProductviewFormattedExport


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProProductviewFormattedMdlnameExport
Description
Note: This function is deprecated Use ProProductviewFormattedMdlnameExport instead. Exports a part, assembly or drawing to a user-specified Creo View format.
Synopsis
#include <ProUtil.h>
ProErrorProProductviewFormattedExport(
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.
*/
ProName 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: Superseded Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Data Exchange