- 积分
- 6409
- 明经币
- 个
- 注册时间
- 2017-8-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
为什么这样修改标注样式字体是不行的,该怎么修改??
 - Private Sub Form_Load()
- Dim newText As Object
- Dim ys As Object,n&
- On Error Resume Next
- Set acadApp = GetObject(, "AutoCAD.Application")
- If Err Then
- Err.Clear
- Set acadApp = CreateObject("AutoCAD.Application")
- If Err Then End
- Else
- Set acadDoc = acadApp.Documents.Add
- End If
- acadApp.Visible = True
- n = acadApp.Documents.Count
- Set acadDoc = acadApp.Documents(n - 1)
- Set ys = acadDoc.ActiveDimStyle
- Set newText = acadDoc.TextStyles
- newText.Item(1).Name = "宋体"
- End Sub
|
|