![]() |
【转帖】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. |