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