![]() |
【转帖】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. |