API ドキュメンテーション > 3D interface > Object ProProductview > Function ProProductviewFormattedMdlnameExport
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:
Synopsis
#include <ProUtil.h>
ProProductviewFormattedMdlnameExport
(
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.
*/
/* (In)
The export options handle.
*/
)
Returns
The export succeeded.
One or more input arguments is invalid.
Model not displayed in any window.
pro2prod_view.dll not found
pro2prod_view.dll could not be loaded and/or
Design Test Mode is active
the function is not available in this mode.
User Guide References
これは役に立ちましたか?