一梦向北123
一梦向北123
关注数: 3
粉丝数: 6
发帖数: 385
关注贴吧数: 12
急!急!急!新人小白求大神注释程序,小吕子在此谢过!!! Public FunctionGetMTextUnformatString(MTextString As String) As String Dim s As String Dim RE As Object Set RE =ThisDrawing.Application.GetInterfaceObject("VBscript.RegExp") RE.IgnoreCase = True RE.Globa = True s = MTextString RE.pattern = "\\\" s = RE.Replace(s, Chr(1)) RE.pattern = "\\{" s = RE.Replace(s, Chr(2)) RE.pattern = "\\}" s = RE.Replace(s, Chr(3)) RE.pattern = "\\pi(.[^;]*);" s = RE.Replace(s, "") RE.pattern = "\\pt(.[^;]*);" s = RE.Replace(s, "") RE.pattern = "\\s(.[^;]*)(\^|#|\\)(.[^;]*);" s = RE.Replace(s, "$1$3") RE.pattern ="(\\F|\\C|\\H|\\T|\\Q|\\W|\\A)(.[^;];" s = RE.Replace(s, "") RE.pattern = "\\~" s = RE.Replace(s, "") RE.pattern = "\\P" s = RE.Replace(s, "") RE.pattern = vbLf s = RE.Replace(s, "") RE.pattern = "({|})" s = RE.Replace(s, "") RE.pattern = "\x01" s = RE.Replace(s, "\") RE.pattern = "\x02" s = RE.Replace(s, "{") RE.pattern = "\x03" s = RE.Replace(s, "}") Set RE = Nothing GetMTextUnformatString = s End Function Public Sub GetMTextString() Dim objMText As AcadMText Dim ptPick As Variant ThisDrawing.Utility.GetEntity objMText, ptPick MsgBoxGetMTextUnformatString(objMText.TextString) End Sub
来电了,却与我们宿舍无关……求关于电费那点事 RT,万能的吧友,你们在哪里? LZ只是昨天不小心插个热水袋而已,然后跳闸了,不是五分钟后就应该来电么?可素一天一夜了,好吧,交电费,28栋阿姨抛了句“你们下学期再来吧”,肿么了
1
下一页