![]() |
【转帖】inserting an existing dwg into a new one
inserting an existing dwg into a new one
inserting an existing dwg into a new one i'm trying to insert an existing dwg into a new dwg: odrxobjectimpl<myservices> svcs; odinitialize(&svcs); //new dwg oddbdatabaseptr pdb = svcs.createdatabase(); .... .... //add existing oddbdatabaseptr ndb; ndb = svcs->readfile(exname); odgematrix3d xform; xform.settranslation(base); xform.settoscaling(scale, sbase); pdb->insert(xform, ndb); ndb.release(); .... .... //save odwrfilebuf fb(newname); oddb::savetype filetype = oddb::kdwg; oddb: wgversion outver = oddb::vac15; pdb->setdwgcodepage(cp_ansi_1253 ); pdb->writefile(&fb, filetype, outver); pdb.release(); oduninitialize(); the final dwg can be opened by autocad r14/2000, intellicad v4, but it cannot be opened by intellicad v3.3 or earlier. any ideas? (the problem comes only when i use '->insert' to insert any external dwg. i have never faced such a problem with any of the other drawings i have created with dwgdirect) have you tried autocad's and dwgdirect's recover? if they report no problems maybe the reason is some intellicad bug which was fixed in v4. sergey slezkin thank you sergey, that's what i thought in the beggining. autocad recover is not reporting any errors. the strange thing is that when i open the new dwg from autocad 14/2000/2002.. or intellicad v4 and then just save it, intellicad v3 can read it!! and what about dwgdirect's recover? it may report a problem even if autocad's recover says nothing. sergey slezkin sergey, dwg recover did not find any error. thanks for you time, aristidis |
所有的时间均为北京时间。 现在的时间是 07:41 PM. |