Public Sub 字体样式() '============设置字体============ Dim typeface As String Dim textbold As Boolean Dim textitalic As Boolean Dim textcharset As Long Dim textpfamily As Long acadDoc.ActiveTextStyle.GetFont typeface, textbold, textitalic, textcharset, textpfamily typeface = "宋体" acadDoc.ActiveTextStyle.SetFont typeface, textbold, textitalic, textcharset, textpfamily acadDoc.Regen acActiveViewport End Sub