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

yang686526 2009-05-06 11:44 PM

【转帖】problems creating oddbordinatedimension
 
problems creating oddbordinatedimension
problems creating oddbordinatedimension
hi,
i've trouble creating an oddbordinatedimension in a oddbdatabase.
it seems, that the dwgdirect 1.11 does not compute the dimension value properly.
my code looks like this:
void writeorddim( oddbblocktablerecordptr pblock )
{
oddbordinatedimensionptr porddim =
ddbordinatedimension::createobject();
porddim->setorigin(45, 204, 0); // dxf10
porddim->setdefiningpoint(115, 204, 0); // dxf13
porddim->setleaderendpoint(115, 185, 0); // dxf14
porddim->usexaxis();
porddim->usedefaulttextposition();
porddim->recomputedimblock(); // obviously not neccessary,
// as it does not change the result
pblock->appendoddbentity(porddim);
}
i would expect the dimension value to be the difference between
the x-values of dxf10 and dxf13 which is "70", but the dimblock
conains the text "115"
is the origin value ignored?
did i misunderstood the ordinate dimension or is this a bug in dd1.11?

this is a bug in dd1.11. thank you for feedback.
sincerely yours,
george udov


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