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

yang686526 2009-05-07 12:42 PM

【转帖】recomputedimblock works strange
 
recomputedimblock works strange
recomputedimblock works strange
hello,
i have a problem, when reading dimension's text position, after recomputedimblock() is called:
here is a code segment:
double posy = pdiment->textposition().y;
pdiment->recomputedimblock();
posy = pdiment->textposition().y;
first i get the correct value (148.625)
but after dim block is recomputed i get value (150.19642857142858).
why recomputedimblock() method corrects values in dimension?? as i understand this, it should only create new dimension's geometry block, based on values from dimension - and not change the original values.
i have attached the example drawing, which reproduces the problem.
regards, tomaz
attached files
i ran a test on that and retrieved 148.625 before and after. i believe it may have been a bug that has been repaired. next release should be around pretty soon.


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