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