- 积分
- 836
- 明经币
- 个
- 注册时间
- 2003-10-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2003-10-20 14:57:00
|
显示全部楼层
还是不行啊
比如说:
Public Sub textadd(vBZH, vYXLX, vYXCD, vZZ, vSCSL As Variant)
Dim mtextObj As AcadMText
Dim mtextString As String
Dim insertionPoint(0 To 2) As Double
Dim Width As Double
Width = 80
insertionPoint(0) = 50: insertionPoint(1) = 50: insertionPoint(2) = 0
mtextString = "1.325432423423432423\P"
mtextString = mtextString & "2.kldfjkljdflk;ja;fjdklajdfkjakl\P"
mtextString = mtextString & "3.354fgfasdfsaFSDFS\P"
mtextString = mtextString & "4.FSFDGJKLJER09E8405"
AcadApp.ActiveDocument.ActiveLayer = enn(8)
AcadApp.ActiveDocument.ActiveTextStyle.Height = 4
AcadApp.ActiveDocument.ActiveTextStyle.Width = 1
Set mtextObj = AcadApp.ActiveDocument.ModelSpace.AddMText(insertionPoint, Width, mtextString)
End Sub
前面是一个函数,字体是系统自定字体,如果我想为仿宋体,那么应该加进什么语句?
还有,AcadApp.ActiveDocument.ActiveTextStyle.Height = 4 一句没有什么作用
真的不能改变字高吗? |
|