[求助]把DWG文件转换为DXF问题求助啊!!!
void conversion()<BR>{<BR>//读入DWG文件名<BR>static char szFilter[]="DWG File(*.DWG)|*.DWG||";<BR>CFileDialog fd;<BR>CString FileName;<BR>if(fd.DoModal()==IDOK)<BR>FileName=fd.GetFileName();<BR>//读入DWG文件名<BR><BR>//格式转换成DXF部分<BR>AcDbDatabase *pDb=new AcDbDatabase(Adesk::kFalse);<BR>pDb->readDwgFile(FileName);<BR>Acad::ErrorStatus <BR>setDefaultFormatForSave(AcApDocument::SaveFormat kR15_dxf) <BR>pDb->saveAs("cqs.dxf");<BR>delete pDb;<BR>//格式转换成DXF部分<BR>}<BR>想把DWG文件转换成DXF格式,上面代码转换后的dxf文件在Autocad2000中打不开,<BR>用记事本打开是乱码,请高手指教啊,十分感谢啊!!!!!!!!!!!!!
页:
[1]