Public Function AddDimstyle(ByVal strDimName As String) As AcadDimStyle
Dim dimstyle As AcadDimStyle Set dimstyle = ThisDrawing.DimStyles.Add(strDimName)
........................................................
End Function
addDimstyle "我晕" ''''可以
Dim strN as String
strN=Str(n)
addDimstyle strN ''''不可以
addDimstyle str(double) '''也不可以
提示在接口上调用方法失败,为啥 |