几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】moving from odt to dwgdirec (http://www.dimcax.com/hust/showthread.php?t=17261)

yang686526 2009-05-06 06:07 PM

【转帖】moving from odt to dwgdirec
 
moving from odt to dwgdirect
moving from odt to dwgdirect
hi!
we are currently using the odt 2.009.2 i have been trying to find information regarding what i would need to do to move from odt to dwgdirect, i wondered how it is actually possible or it will require a rewrite from the start?..
how have the people managed this so far? i havent found much information on dwgdirect and although not directly related there seem to be a lot of very useful infomration kept deep down that i have found only by searching the net in the past ex:
that i havent found a way of just browsing through...
thanks!
steven
steven

odt and dwgdirect are different products with different interfaces. dwgdirect interface is close to objectarx/dbx. moving from odt to dwgdirect requires rewriting of your existing code but new dwgdirect-based code will be shorter and simpler. for example dwgdirect takes care about dwg version differences, processes autocad's round-trip data etc. you always work with r15 database and dwgdirect saves it to different versions.
object-oriented interface makes data manipulation easier and minimizes ability to create an invalid drawing. for example creating a multiline you need not calculate segment data yourself - only append vertices and set style. creating hatch you need not calculate pattern data etc.
if you need assistance in migrating from odt to dwgdirect, look at
[ february 06, 2003: message edited by: sergey slezkin ]</p>
sergey slezkin

i just began porting my dxf/dwg reader from odt to dwgdirect. the sample reader which is provided in dwgdirect was pretty simple to understand - nothing like odt but not too painful. i got lines, arcs, circles, ellipses, and splines working in less than 2 hours.
so if you think it looks daunting, stick with it!

thanx for the encouragment !


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