在利用vba创建一个选择集并过虑时为何提示出错如
Public Sub test()
Dim sset As AcadSelectionSet
Set sset = ThisDrawing.SelectionSets.Add("layer1")
sset.SelectOnScreen 8, "d"
'd是图层名
End Sub 请高手指教 急!!!
Public Sub test()
Dim sset As AcadSelectionSet
Set sset = ThisDrawing.SelectionSets.Add("layer1")
Dim gpCode(0) As Integer
Dim dataValue(0) As Variant
gpCode(0) = 8
dataValue(0) = "d"
sset.SelectOnScreen gpCode, dataValue
End Sub
过滤机制是由一个组码和值构成的数组。