- 积分
- 793
- 明经币
- 个
- 注册时间
- 2005-3-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
Public Sub s() Dim i As Integer Dim ft(1) As Integer Dim fd(1) As Variant Dim Sset As AcadSelectionSet If ThisDrawing.SelectionSets.Count <> 0 Then For i = 0 To ThisDrawing.SelectionSets.Count - 1 Set Sset = ThisDrawing.SelectionSets.Item(i) Sset.Delete Next End If Set Sset = ThisDrawing.SelectionSets.Add("AA") Sset.SelectOnScreen If Sset.Count = 0 Then Exit Sub ft(0) = 8: fd(0) = Sset.Item(0).Layer ft(1) = 62: fd(1) = Sset.Item(0).color Sset.Clear Sset.Select acSelectionSetAll, , , ft, fd Sset.Highlight (True) End Sub
运行上面宏后,符合要求的对象高亮显示,但是这些被选中的对象不像在CAD里直接选取一样,能够通过颜色下拉列表直接改变其颜色?这是为什么?有什么办法可以解决该问题。 |
|