'统一标注样式中的字体
Sub TongyiDimstyleText()
'On Error Resume Next
Dim i As Integer
Dim DimS As AcadDimStyle
For Each DimS In ThisDrawing.DimStyles
Set DimS = ThisDrawing.DimStyles(i)
'DimS.Name = "DimStyle_" & str(i)
ThisDrawing.ActiveDimStyle = DimS
ThisDrawing.SetVariable "DimTxSty", "STANDARD" '指定标注的文字样式
DimS.CopyFrom ThisDrawing
i = i + 1
Next
End Sub
阅读全文……Sub TongyiDimstyleText()
'On Error Resume Next
Dim i As Integer
Dim DimS As AcadDimStyle
For Each DimS In ThisDrawing.DimStyles
Set DimS = ThisDrawing.DimStyles(i)
'DimS.Name = "DimStyle_" & str(i)
ThisDrawing.ActiveDimStyle = DimS
ThisDrawing.SetVariable "DimTxSty", "STANDARD" '指定标注的文字样式
DimS.CopyFrom ThisDrawing
i = i + 1
Next
End Sub