查看单个帖子
旧 2009-05-06, 03:16 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)