高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|