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

yang686526 2009-05-05 09:57 AM

【转帖】exception in extension dictionary
 
exception in extension dictionary
exception in extension dictionary
hi,
the program segment below causes an exception (i am using
dwgdirect 1.09). could you tell me what do i do wrong?
thank you,
miklos
oddbaligneddimensionptr dp = oddbaligneddimension::createobject();
pdb->addoddbobject(dp);
dp->createextensiondictionary();
oddbobjectid xid = dp->extensiondictionary();
oddbdictionaryptr pobject = xid.safeopenobject();
oddbxrecordptr pxrec = oddbxrecord::createobject();
//so far it seems ok
oddbobjectid rid = pobject->setat("bla", pxrec);
//this last line causes an exception
safeopenobject() has argument openmode. it's default value is oddb::kforread. to modify the object use oddb::kforwrite mode.
sergey slezkin
thank you for the fast reply to my silly question
miklos


所有的时间均为北京时间。 现在的时间是 08:35 AM.