below is some code. I think I have the problem areas found but do not know how to fix it. I cant seem to find the filter codes for fields. I want to update the fields only in paperspace without having to switch to each of the tabs. Is this possible? ALso i need to delete the selection set if there is an error in the program(or if you hit the escape key etc.)
Code:
Sub fixfield()
Dim ssfield As AcadSelectionSet
Dim entObj As AcadEntity
Dim filtertype(1) As Integer
Dim FilterData(1) As Variant
Dim mode As Integer
mode = acSelectionSetAll
Set ssfield = ThisDrawing.SelectionSets.Add("SS2")
filtertype(0) = [COLOR=red]??????????[/color]
filtertype(1) = 67
FilterData(0) = [COLOR=red]??????????[/color]
FilterData(1) = "1"
ssfield.Select mode, , , filtertype, FilterData
ssfield.Erase
ssfield.Delete
End Sub