I am using .net in autocad2005 and i need some code examples. Dim FilterType(0) As Integer Dim FilterData(0) As Object FilterType(0) = 0 FilterData(0) = "Circle" Dim ss As AutoCAD.AcadSelectionSet Try ss = m_AcadApp.ActiveDocument.SelectionSets.Add("yyy") Catch ex As Exception ss = m_AcadApp.ActiveDocument.SelectionSets.Item("yyy") End Try ss.Select(AcSelect.acSelectionSetAll, , , FilterType, FilterData) the Exception is on the select methode the Exception details: An unhandled exception of type 'System.ArgumentException' occurred in VbDotNetisaac.exe Additional information: Invalid argument FilterType in Select How I use the FilterType and the FilterData objects? thanks