查看单个帖子
旧 2009-05-05, 09:50 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)