查看单个帖子
旧 2009-05-07, 04:44 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】ext Heigh

text height
text height
i'm trying to change the text height of all dimension text entities but i'm have trouble figuring out how. oddbtext has the method settextheight but that doesn't help at all to actually get anything done.
it was fairly simple in dwgdirectx...
code:
dim actextstyle as iacadtextstyle = dwgdoc.textstyles.add("mytextstyle")
actextstyle.height = 0.85
dim acdimstyle as iacaddimstyle = dwgdoc.dimstyles.add("mydimstyle")
dwgdoc.setvariable("dimtxsty", "mytextstyle")
acdimstyle.copyfrom(dwgdoc)
dwgdoc.activedimstyle = dwgdoc.dimstyles.item("mydimstyle")
i'd like to be able to do the same in dwgdirect.
hello eric tyrrell,
you can find example code in odwriteex project. see dbfiler.cpp method dbfiller::adddimstyle().
best regards,
sergey z.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)