Synopsis
PDX_MSGT ddfp_ParseFile(long option, char *file_name, PDX_DWG_FILE_INFO *file_info, MDA_ENT_FUNC *func)
Purpose
Read a DXF/DWG file into a MDA DXF Model
Description
The Specified DWG/DXF file is parsed into the current model using the Marcomp DWGDirect library. DWGDirect functions parse the specified file. The ddfp routines will map the data from DWGDirect to a MDA model. This function is to be called only by dxfi_ParseFile and assumes that the file has been checked to insure that it is a DWG/DXF file.
This parser supports DWG versions nine through 2005.
To setup a callback function to show the percentage of the file that has been parsed in, call the function ddfp_PercentageParsed(). For more information see ddfp_PercentageParsed().
Input
option
No options
file_name
Name of the file to be parsed.
file_info
Information related to the specified file.
func
Function to be called with each entity after it is parsed, or NULL if no function should be called.
Return
DDFP error code