添加下面代码,问题解决,估计AutoCAD东亚语言版本也是这么做的。:)- Dim strDisplay As String = opt.Keywords.GetDisplayString(False)
- Dim i = strDisplay.IndexOf("<")
- Dim j = strDisplay.IndexOf(">")
- If i >= 0 And j >= 0 Then
- Dim strDefault As String = strDisplay.Substring(i, j - i + 1)
- i = strDisplay.IndexOf("(")
- j = strDisplay.IndexOf(")")
- strDefault = strDefault.Remove(i, j - i + 1)
- opt.Message = vbLf & msg & " " & strDefault
- opt.AppendKeywordsToMessage = False
- End If
|