AcadSelectionSet 取图元颜色和线型
AcadSelectionSet 取图元颜色和线型,在不同图层内,只以取到256这个值
代码如下:
Sub main() Dim sets As AcadSelectionSet Dim i As Integer Set sets = ThisDrawing.SelectionSets.Add("Select") sets.SelectOnScreen For i = 0 To sets.Count - 1 MsgBox "当前颜色值为:" & sets.Item(i).color Next i sets.Delete End Sub
谢谢!!! |