几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】passing a drawing between dwgdirect and dwgdirec (http://www.dimcax.com/hust/showthread.php?t=17855)

yang686526 2009-05-06 09:43 PM

【转帖】passing a drawing between dwgdirect and dwgdirec
 
passing a drawing between dwgdirect and dwgdirectx
passing a drawing between dwgdirect and dwgdirectx
i am looking at creating my own activex rendering control to do basic rendering in c++ but i already have invested a great deal of time in vb code using dwgdirectx and don't want to throw away this code. the need has arisen that, where we were previously only extracting data from the drawing and producing dwf's, we now need to show a preview of changes made on the drawing.
so my problem is how do i make the same drawing available to both my mfc activex control based on the singledoc example and the dwgdirectx dll without a round trip to disk. it seems that this is what happens with the viewx.dll.
any pointers (excuse the pun) would be appreiciated
darren
there is an interface in dwgdirectx called iacadbasedatabase, designated for that purpose. you may open database via dwgdirectx and pass acaddatabase object to your control. there you can query for iacadbasedatabase and get c++ pointer to database.
iacadbasedatabase interafce is declared in the header "odaxwrap.h"
many thanks,
its just what i needed.
darren


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