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

yang686526 2009-05-06 07:25 PM

【转帖】oddbbasedatabase
 
oddbbasedatabase
oddbbasedatabase
2.5.1 has introduced the concept of oddbbasedatabase (or maybe 2.5.0 did, i never used it).
what is the relationship between oddbbasedatabase and oddbdatabase?
can one be safely cast to the other?
if not, gicontext returns oddbbasedatabase. is there a way to get oddbdatabase similarly inside the vectorization context?
unfortunately the c++ documentation is sadly lacking in an explanation of oddbbasedatabase and the only time it is mentioned in the samples (in odamfcapp) it is merely used as a formal argument to findfile and that parameter always defaults in use, so that is not very enlightening.
thanks.
last edited by tailormade; 18th march 2008 at 04:14 pmfff">.
this is a common base of dgn and dwg databases.
if you know that you are dealing with dwg, you may blind-cast it to oddbdatabase. if not - use runtime cast (like oddbdatabase::cast() )
vladimir
what is the possibility of a small mfc application showing how the dwg and dgn libraries are supposed to compile together? as you will see from my dedicated thread in the dgndirect support area i am having many problems getting the basic host/app services of both clients compiling. the is probably because i don't fully understand how to use the two systems together.
i'll redirect your question to the right person.
vladimir
thank you. i hope to hear from someone soon then!
andrew


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