Sub 创建新的选择集() Dim sset As AcadSelectionSet If Not IsNull(ThisDrawing.SelectionSets.Item("newadd")) Then Set sset = ThisDrawing.SelectionSets.Item("newadd") sset.Delete End If Set sset = ThisDrawing.SelectionSets.Add("newadd") FilterType = 8 FilterData = "图层1" sset.Select acSelectionSetAll, , , FilterType, FilterData End Sub 提示FilterType位于Select中无效 代码错误,请指教 |