![]() |
【转帖】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. |
所有的时间均为北京时间。 现在的时间是 05:56 PM. |