Can somebody explain me why this filter is working?
Dim filter(1) As TypedValue
filter(0) = New TypedValue(DxfCode.Start, "INSERT")
filter(1) = New TypedValue(66, 1)
Dim sf As New SelectionFilter(filter)
Dim opts As PromptSelectionOptions = New PromptSelectionOptions()
opts.MessageForAdding = ControlChars.CrLf & "Select block references: "
psr = ed.GetSelection(opts,sf)
ss = psr.Value
If ss.Count > 0 Then
ed.WriteMessage(vbCr & "Selected " & ss.Count & " attributed blocks")
End If
~'J'~
Dim myFilter() As TypedValue = {New TypedValue(0, "INSERT"), New TypedValue(66, 1)}
Which is little cleaner the way I see it, but amounts to the same thing.