查看单个帖子
旧 2009-05-06, 11:44 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)