API 文档 > Miscellaneous > Object ProNativewstring > Function ProOutputFileMdlnameWrite
Function ProOutputFileMdlnameWrite
Description
Exports a file from Creo Parametric onto the disk. The file format is the same as the one created by an interactive Creo Parametric session. 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 ProMdlFileName will be added in a future release.
Replacement in Object TOOLKIT:
Synopsis
#include <ProUtil.h>
ProOutputFileMdlnameWrite
(
ProMdl model
/* (In)
A pointer to the model. PRO_IGES_FILE and PRO_DXF_FILE work for drawings only. PRO_PROGRAM_FILE works for parts and assemblies only. For CL data, this pointer must reference a manufacturing model.
*/
/* (In)
The name of the file to be created (with the extension, but not the version). Must not be NULL or an empty string. If file_type is PRO_IGES_FILE or PRO_DXF_FILE, do not include the extension; it is added automatically.
*/
/* (In)
*/
/* (In)
If file_type is PRO_RENDER_FILE, PRO_INVENTOR_FILE, PRO_CATIAFACETS_FILE, PRO_SLA_ASCII_FILE or PRO_SLA_BINARY_FILE arg1 is a wchar_t* to a coordinate system name. If this is NULL, the function uses the default coordinate system. If file_type is PRO_SPOOL_FILE, arg1 is a wchar_t* to the spool name. If file_type is PRO_CONNECTOR_PARAMS_FILE, arg1 is a int* pointing to a ProIdTable (ProIdTable is an integer array of component identifiers). If file_type is PRO_CABLE_PARAMS_FILE, arg1 is the ProSolid (part pointer).
*/
/* (In)
If file_type is PRO_FEAT_INFO, PRO_MFG_OPER_CL or PRO_MFG_FEAT_CL arg2 is a int* to the feature ID. If file_type is PRO_RELATION_FILE, arg2 is a int* to the feature ID, to get the relations contained in the feature. Pass NULL to get relations contained in the model. If file_type is PRO_IGES_3D_FILE, PRO_STEP_FILE, PRO_VDA_FILE, PRO_FIAT_FILE, PRO_CATIA_DIRECT_FILE or PRO_ACIS_FILE arg2 is a int* pointing to the number. If file_type is PRO_CGM_FILE, arg2 is a int* pointing to the export type (PROCGMTYPE_CLEAR_TEXT or PROCGMTYPE_MIL_SPEC ie 1 or 2). If file_type is PRO_CONNECTOR_PARAMS_FILE, arg2 is a int* pointing to the number, which is equal to the number of component identifier(s). If file_type is PRO_CABLE_PARAMS_FILE, arg2 is the wchar_t* pointing to the cable name.
Please note that the previous use of arg2 and arg3 for quality
*/
/* (In)
If file_type is PRO_CGM_FILE, arg3 is a int* pointing to the scale type (PROCGMTYPE_ABSTRACT or PROCGMTYPE_METRIC ie 3 or 4) If file_type is PRO_MFG_OPER_CL or PRO_MFG_FEAT_CL arg3 is a int* pointing to the array of nc feature ids
*/
/* (In)
If file_type is PRO_DIFF_REPORT_FILE, this is the model to which the input model will be compared for generation of the difference report.
*/
)
Returns
The function successfully exported the file.
The function failed.
An entity named in arg1 or arg2 does not exist.
Some input was incorrect. e.g.: file_type was PRO_CGM_FILE but mdl was not a drawing; assembly did not contain specified part; quality was outside limits.
The file format selected is no longer supported on this platform.
The function is not available in Design Test Mode.
Sample Code References
这对您有帮助吗?