查看单个帖子
旧 2009-05-04, 07:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】dimension reading error

dimension reading error
dimension reading error
i tryed to read all the dimensions in this file(as in attachment ), i found an error in one 'rotated dimension'. the code like this
...
oddbobjectid dimblkid = ptroddbdimension->dimblockid();
...
the result of "dimblkid" is null. when i use
ptroddbdimension->recomputedimblock();
to regenerate the dimension block, some exception was throwed.
i should read all the image entities in every dimension, so, how can i get the right results?
this file was read well by opendwg. now i am using dwgdirect 1.10
best regard!
vinton zhang
attached files
i failed to reproduce recomputedimblock() crash in current code. it recomputes all in this file ok. next week maintenance release is planned.
the file is correct but not all dimension blocks present.
btw, old c toolkit does not contain functionality computing dimension blocks.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)