几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to set the displace of text for dimension indication (http://www.dimcax.com/hust/showthread.php?t=16777)

yang686526 2009-05-06 03:16 PM

【转帖】how to set the displace of text for dimension indication
 
how to set the displace of text for dimension indication?
how to set the displace of text for dimension indication?
// settextattachment function don't play the role in opendwg
// oddbdimensionptr pad
pad->settextattachment(oddbmtext::ktopleft);
pad->settextlinespacingstyle(oddb::kexactly);
pad->settextposition(toacad(&pappearance->pttxtlocation));
pad->usesettextposition();
my question is as followings:
1)what is the role of settextattachment function ?
2)used the format of text replace for dimension indication, if text insert point is in the location of top&left,what can i do for it?
text position of dimension entity can be calculated autimatically or it can be set explicitely if
settextposition() and usesettextposition() are called.
settextattachment() defines how text is located around point passed to settextposition().
see oddbmtext::setattachement()
sergey slezkin


所有的时间均为北京时间。 现在的时间是 01:56 AM.