Category 3D interface, Object ProProductview

Function ProProductviewExport


DEPRECATED: Since Wildfire 5.0
SUPERSEDED BY: ProProductviewFormattedMdlnameExport
Description
NOTE:

This function is deprecated. Use ProProductviewFormattedMdlnameExport() instead.

Exports a part, assembly or drawing to a Creo View format.

Synopsis
#include <ProUtil.h>
ProErrorProProductviewExport(
ProMdl mdl
/* (In)
The model handle. If mdl is a drawing, it must be displayed in a window. Depending upon the model type, following output files are created:
  • Part : .ed file, .ol file
  • Assembly : .ed file, seperate .ol file for each part contained in the assembly
  • Drawing : .ed file, .plt 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.
*/
)
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
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.

Sample Code References:

  1. pt_wc_server ( PTWCServerPartToPView.c )