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

yang686526 2009-05-04 07:35 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 11:26 PM.