VBA如何打开HZTXT4字体
Sub Ch3_OpenDrawing()<BR>Dim dwgName As StringdwgName = "D:\A.dwg"
If Dir(dwgName) <> "" Then<BR>ThisDrawing.Application.Documents.Open dwgName<BR>Else<BR>MsgBox "文件 " & dwgName & " 并不存在。"
End If<BR>End Sub
图形打开后,没字,如何只打开HZTXT4字体? 把HZTXT4文件拷贝到cad的字体目录下 cad的字体目录下已有HZTXT4文件,正常打开没问题,VBA打开不行。 用sendcommand吧
ThisDrawing.SetVariable "FILEDIA",0
ThisDrawing.sendcommand "OPEN" & vbCr & dwgName & vbCr
ThisDrawing.SetVariable "FILEDIA",1
页:
[1]