Synopsis
PDX_MSGT dxfi_FormatFile(long option, int model, char *file_name, MDA_ENT_FUNC *func)
Purpose
Write an ASCII DXF, Binary DXF or Binary DWG file from the specified model.
Description
The specified model is formatted into the specified file. The desired file type (DXF, Binary DXF, DWG) can be set by first calling dxfi_SetFileType. If dxfi_SetFileType is not called, the DXF format will be used by default. See the dxfi_intro man pages for additional information. To setup a callback function to show the percentage of the file that has been formatted, call the function ddff_PercentageFormatted(). For more information see ddff_PercentageFormatted
Input
option
DXFI_FORMAT_OVERWRITE
If the destination file already exists, it is to be overwritten. The default is to issue an error if the file already exists.
model
Model to be formatted
file_name
Name of the file to be created.
func
Function to be called with each entity after it is parsed, or NULL if no function should be called.
Return
DXFI error code