Category 2D interface, Object Pro2dExport

Function Pro2dExport


Description
Exports 2d models to a file. The following output formats are supported: Note that the output can be controlled by a combination of the input argument 'data' and several Creo Parametric configuration options related to entity type export options.
Synopsis
#include <ProUtil.h>
ProErrorPro2dExport(
ProImportExportFile format
/* (In)
The type of file to be exported.
*/
ProPath filename
/* (In)
The name and absolute path of the export file to be created.
*/
ProMdl model
/* (In)
The 2d model from which the information is to be exported.
*/
Pro2dExportdata data
/* (In)
The instructions used for the export. Can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSIllegal import file type.
PRO_TK_BAD_CONTEXTThe model was not a 2D model.
PRO_TK_NO_LICENSEThere is no license for this import option.
PRO_TK_OBSOLETE_FUNCThe file format selected is no longer supported on this platform.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.

Sample Code References:

  1. pt_userguide ( UgDwgPublishContext.c )
  2. pt_userguide ( UgDwgPublishContext.c )
  3. pt_userguide ( UgDwgPublishContext.c )
  4. pt_userguide ( UgDwgPublishContext.c )
  5. pt_userguide ( UgDwgPublishContext.c )
  6. pt_userguide ( UgDwgPublishContext.c )