几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】converting a dwg to a windows metafile 9wmf0 (http://www.dimcax.com/hust/showthread.php?t=15480)

yang686526 2009-05-04 06:13 PM

【转帖】converting a dwg to a windows metafile 9wmf0
 
converting a dwg to a windows metafile (wmf)
converting a dwg to a windows metafile (wmf)
what is the simpliest way to export a oddbdatabase to a wmf file ?
i'm currently trying to do this very thing. i seems that you have render the drawing by calling the update method, and override the odgigeometrysimplifier class, (specifically the polylineout, shellfaceout, rasterimageproc and metafileproc methods) to draw to the wmf device context.
i suggest you look at the exgssimpledevice sample as a good starting point. it does not do any rendering, but it provides all the hooks you need.
regards,
sijmen.


所有的时间均为北京时间。 现在的时间是 07:40 PM.