高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】he Dimension Arc Of Oddb2lineangulardimension Moves To Othe
the dimension arc of oddb2lineangulardimension moves to othe
the dimension arc of oddb2lineangulardimension moves to other location
when i define the oddb2lineangulardimension entity,the defining points of extension lines and the point defining the location of dimension arc are set correct, the location of dimension text not use the default position,but after call recomputedimblock(),the dimension arc is moved to approach the text and the the point defining the location of dimension arc is changed.i don't know why these happen,are some parameters for setdimxxx() that i don't set correct? thanks a lot!
the sample is:
oddb2lineangulardimensionptr pdimension=oddb2lineangulardimension::createobject ();
pactivelayoutbtr->appendoddbentity(pdimension);
pdimension->setdatabasedefaults();
...
pdimension->setxline1start(pt1);
pdimension->setxline1end(pt2);
pdimension->setxline2start(pt3);
pdimension->setxline2end(pt4);
pdimension->setarcpoint(ptarcdef);
pdimension->usesettextposition();
pdimension->settextposition(pttextpos);
pdimension->recomputedimblock();
...
hello,
try to set pdimension->setdimtmove(2) (2 means move text no leader).
recomputedimblock() may change the point defining the location of dimension arc in case dimtmove() is 0 ( 0 means keep dim line with text).
best regards,
sergey z.
|