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

yang686526 2009-05-06 07:28 PM

【转帖】oddbblockreferenceexplode90
 
oddbblockreference::explode()
oddbblockreference::explode()
i've found a problem with a block reference, which has, as i can see in autocad 2002, a
scale x factor of -1, a scale y factor of 1 and a scale z factor of 1.
the block reference contains 10 lines and an arc, and when i draw in a window the "exploded" block, lines are correctly transformed but arc is not (it seems as if the start and end points are interchanged or something like that).
if i explode the block reference inside autocad and then draw the entities inside my program, all of them are correctly drawn.
this problem occurs only when scale factors x and y has diferent signs.
do you think is possible that oddbblockreference::explode() is not working correctly in this case.
if you want i send to you the dwg file, please indicate to me an e-mail adress.

i reproduced the problem. it's a bug in oddbarc::transformby(). we'll fix it. thanks.
sergey slezkin


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