查看单个帖子
旧 2009-05-06, 06:07 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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 !
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)