|
楼主 |
发表于 2022-12-18 12:22
|
显示全部楼层
- Sub Test_A1()
- Dim xPath, x%, Tr, Ar
- xPath = " M 0 0 C 0.001 0.04533 0.011 0.08667 0.028 0.11333 C 0.028 0.11467 0.055 0.15067 0.055 0.14933" & _
- " C 0.07 0.16933 0.079 0.19733 0.079 0.22667 C 0.079 0.28533 0.044 0.332 0 0.33333" & _
- " C -0.044 0.332 -0.079 0.28533 -0.079 0.22667 C -0.079 0.19733 -0.07 0.16933 -0.055 0.14933" & _
- " C -0.055 0.15067 -0.028 0.11467 -0.028 0.11333 C -0.011 0.08667 -0.001 0.04533 0 0 Z"
- x = InStr(xPath, "C")
- xPath = Replace(Mid(xPath, x + 1), " ", " ")
- xPath = Trim(Replace(xPath, "Z", ""))
- Tr = Split(xPath, "C")
- ReDim Ar(UBound(Tr))
- For i = 0 To UBound(Tr)
- Ar(i) = Split(Trim(Tr(i)), " ")
- Next i
- End Sub
复制代码
收到,谢谢老师。 |
|