几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】ext Heigh (http://www.dimcax.com/hust/showthread.php?t=18724)

yang686526 2009-05-07 04:44 PM

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


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