Sub Add_HyperLinks()
Dim Hyperlinks As AcadHyperlinks
Dim Hyperlink As AcadHyperlink
Dim Obj As AcadEntity
For Each Obj In ThisDrawing.ModelSpace
Set Hyperlinks = Obj.Hyperlinks
Set Hyperlink = Hyperlinks.Add("田草博客")
Hyperlink.URL = "http://www.tiancao.net"
Hyperlink.URLDescription = "Ctrl+单击编辑对象"
Hyperlink.URLNamedLocation = "田草博客"
Next
End Sub
阅读全文……Dim Hyperlinks As AcadHyperlinks
Dim Hyperlink As AcadHyperlink
Dim Obj As AcadEntity
For Each Obj In ThisDrawing.ModelSpace
Set Hyperlinks = Obj.Hyperlinks
Set Hyperlink = Hyperlinks.Add("田草博客")
Hyperlink.URL = "http://www.tiancao.net"
Hyperlink.URLDescription = "Ctrl+单击编辑对象"
Hyperlink.URLNamedLocation = "田草博客"
Next
End Sub