[求助]鼠标中键问题
<P>以下程序如果先采取双击鼠标中键对图形进行范围缩放后再运行就会出现提示“自动化无法完成”的错误,但如果在命令行输入zoom命令来对图形实现范围缩放就没任何问题,不知道是不是CAD的问题,该如何解决?先谢谢各位了</P><P>Sub test()<BR> Dim i As Integer<BR> Dim sset As AcadSelectionSet<BR> <BR> For i = ThisDrawing.SelectionSets.Count - 1 To 0 Step -1<BR> If ThisDrawing.SelectionSets.Item(i).Name = "SS1" Then<BR> ThisDrawing.SelectionSets.Item(i).Delete<BR> Exit For<BR> End If<BR> Next i<BR> Set sset = ThisDrawing.SelectionSets.Add("SS1")<BR> sset.Select acSelectionSetAll<BR> MsgBox sset.Count<BR> For i = ThisDrawing.SelectionSets.Count - 1 To 0 Step -1<BR> If ThisDrawing.SelectionSets.Item(i).Name = "SS1" Then<BR> ThisDrawing.SelectionSets.Item(i).Delete<BR> Exit For<BR> End If<BR> Next i<BR>End Sub</P>
页:
[1]