几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】when Saving Spline To Dxf File (http://www.dimcax.com/hust/showthread.php?t=19102)

yang686526 2009-05-07 06:58 PM

【转帖】when Saving Spline To Dxf File
 
when saving spline to dxf file......
when saving spline to dxf file......
when converting the dwg2004 file to dxf r12,
i find that spline is converted to polyline.
and the problem is that the polyline points count
is not enough. how can i do it to make sure the
point count is enough for me?
the following is my codes......
#ifndef _toolkit_in_dll_
odrx_init_static_module_map();
#endif
bool disableoutput = false;
trytofindacad();
odstaticrxobject<myservices> svcs;
odinitialize(&svcs);
#ifdef _msc_ver
:drxinitwinntcrypt();
#endif
svcs.disableoutput(disableoutput);//true or false?//1
oddbdatabaseptr m_pdb;
//导处文件
odstreambufptr pfile = svcs.createfile(dfilename, oda::kfilewrite,
oda::ksharedenyreadwrite,
oda::kcreatealways);
m_pdb->writefile(pfile, (oddb::savetype)_type, (oddb:wgversion)_ver, true ,16);
#ifdef _msc_ver
:drxuninitwinntcrypt();
#endif
m_pdb.release();
oduninitialize();

oddbhostappservices::setr12savedeviation()
sincerely yours,
george udov
多谢了!!!
thank a lot!


所有的时间均为北京时间。 现在的时间是 06:55 AM.