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

yang686526 2009-05-06 11:49 PM

【转帖】problems while reading the image dictionary
 
problems while reading the image dictionary
problems while reading the image dictionary
i have som difficulties to read the image dictionary in a drawing.
i retrieve a proxy object while iterating the image dictionary and it's a acdbrasterimagedef class.
isn't this the corresponding opendwg class oddbrasterimagedef??
how do i read this information??
// dump from drawing
pobject->isa()->name()=<acdbproxyobject>
pdiciter->name()=<xxx>
pproxyobj->originalclassname()= <acdbrasterimagedef>
pproxyobj->originaldxfname()=<imagedef>
thanks in advance

additional info:
the problem only occurs the first time a read the drawing. if i read the same drawing again within the same session i get an acdbrasterimagedef instead of an acdbproxyobject.
why is it so. have i failed with an initialization or is this a bug??
pproxyobj->originalclassname()=<acdbrasterimagedef& gt; pproxyobj->originaldxfname()=<imagedef>
sorry for not detecting this before i wrote my first post
thanks in advance (again)

i failed to reproduce the situation. does it happen with all dwg/dxf files? does it take place if a drawing is loaded with odamfcapp (what type of object is listed in acad_image_dict)? could you send me a drawing illustrating the problem?
sergey slezkin


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