几何尺寸与公差论坛------致力于产品几何量公差标准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 2.2.0 to 2.6.1 (http://www.dimcax.com/hust/showthread.php?t=17260)

yang686526 2009-05-06 06:07 PM

【转帖】moving from 2.2.0 to 2.6.1
 
moving from 2.2.0 to 2.6.1
moving from 2.2.0 to 2.6.1
hi,
so far we had been using dwgdirect 2.2.0 in our codebase of illustrator for importing dxf and dwg files. now we are planning to move to 2.6.1. i have following queries.
query 1:
--------
we were using following library files of 2.2.0.
dd_vc8mt_acisbuilder
dd_vc8mt_acisrenderer
dd_vc8mt_br
dd_vc8mt_db
dd_vc8mt_ge
dd_vc8mt_gi
dd_vc8mt_gs
dd_vc8mt_modelergeometry
dd_vc8mt_recomputedimblock
dd_vc8mt_root
dd_vc8mt_spatialindex
dd_vc8mt_acisrenderer.lib is not available in 2.6.1. which libraries of 2.6.1 should i take which corresponds to the above libraries of 2.2.0
query 2:
---------
in 2.2.0 inside exgssimpledevice.cpp there was a class exsimpleview derived from odgsbasevectorizeview. inside exsimpleview in update() method there was a call
numobjects = context()->database()->approxnumobjects();
context() was returning a pointer to odgicontext type object
and context()->database() was returning a pointer to object type oddbdatabase. now in 2.6.1 this returns pointer to object type oddbbasedatabase. as oddbbasedatabase doesn't have approxnumobjects() method, how can i get approximate number of objects?
please also let me know if i there are some "need to know" points which i also need to take care while this migration.
thanks,
harsha
"acisrenderer" corresponds to "breprenderer"
you may safely cast oddbbasedatabase to oddbdatabase, if you are working with dwgdirect. (oddbbasedatabase is also used in dgndirect)
thanks. it helped []
-harsha
during that time 2.6.3 was released and i would recommend upgrade to it.
it's binary compatible with 2.6.1 and does not require any additional code/project changes. the only difference is a hundred or two bug fixes.
sergey slezkin
i am at 2.6.3 now, shall i try to move to 2.6.4? is it worth to change and how much will be the effect?
the latest dwgdirect release is 2.6.3
sergey slezkin
thanks sergey,
i asked this as i saw thread
-harsha
the tread you saw is about dgndirect and new features and bugs fixed in it are listed in it.
sergey slezkin
yes, thanks for correcting me.
-harsha


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