几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】he Dimension Arc Of Oddb2lineangulardimension Moves To Othe (http://www.dimcax.com/hust/showthread.php?t=18757)

yang686526 2009-05-07 04:56 PM

【转帖】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.