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