几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】error while trying to insert a dwg to a database as block (http://www.dimcax.com/hust/showthread.php?t=16123)

yang686526 2009-05-05 09:50 AM

【转帖】error while trying to insert a dwg to a database as block
 
error while trying to insert a dwg to a database as block
error while trying to insert a dwg to a database as block
i have a strange problem with some dwg files when i am trying to open them and edit in an application i have created (which was based on the odamfcapp example).
i have created a database (oddbdatabaseptr* pdb) and then i am trying to execute the following two lines of code:
oddbdatabaseptr adb = svcs->readfile(filename, false, false, oda::ksharedenyno);
pdb->insert(blockname, adb, true);
the pdb->insert() fails when i am trying to insert the the attached dwg, giving an external exception.
i cannot figure what seems to be the problem. does anyone have faced something similar? what could the problem be?
thank you,
andreas tsirikos
4m sa
attached files
which dd version do you use? in odamfcapp 2.3.1 it works:
file/new
edit/registered commands/drxdebug/testdbinsert.
note: excustobjs module should be built. it contains the code inserting the database.
sergey slezkin


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