- 积分
- 6961
- 明经币
- 个
- 注册时间
- 2004-4-9
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-11-18 14:19:00
|
显示全部楼层
试着改写一下:
Sub test() Dim wenzileixing As AcadTextStyle Set wenzileixing = ThisDrawing.TextStyles.Add("wntext") wenzileixing.SetFont "ËÎÌå", False, False, 1, 1
wenzileixing.Width = 0.7 ' 这样定义对了!!!!
Dim wenzi As AcadText Dim wenzishi As String Dim weizhi(0 To 2) As Double Dim gaodu As Double wenzishi = "我爱中华人民共和国" gaodu = 4 weizhi(0) = 50 weizhi(1) = 50 weizhi(2) = 0 ThisDrawing.ActiveTextStyle = wenzileixing Set wenzi = ThisDrawing.ModelSpace.AddText(wenzishi, weizhi, gaodu) wenzi.Update End Sub
|
|