下面代码运行速度是不是太慢?
Dim entry As AcadEntityFor Each entry In ThisDrawing.ModelSpace
If entry.Handle = "35" Then
entry.Highlight (True)
Exit For
End If
Next 这样是慢了点,如果这样看看:
Dim Entry as AcadEntity
On Error Resume Next
Set Entry = Thisdrawing.HandleToObject("35")
If Not Err Then Entry.Highlight(True) 非常感谢!
页:
[1]