I may be way off base on the code. here is what i am trying to do. i want to select only block objects on certain layers. the selection set portion works fine pretty basic. the problem is within the section where i want to manipulate the arcs and splines within the blocks. i want to change the lintype. below is the code and what i believe to be the problem area in red.
Code:
Sub ChBlockEntProp()
Dim ssblocks As AcadSelectionSet
Dim objBlock As AcadBlock
Dim objCadEnt As AcadEntity
Dim FilterType(3) As Integer
Dim FilterData(3) As Variant
Set ssblocks = ThisDrawing.SelectionSets.Add("SS4")
FilterType(0) = -4
FilterData(0) = "<or"
FilterType(1) = 8
FilterData(1) = "a-hist"
FilterType(2) = 8
FilterData(2) = "a-hist-2000"
FilterType(3) = -4
FilterData(3) = "or>"
ssblocks.SelectOnScreen FilterType, FilterData
[COLOR=red]For Each objBlock In ThisDrawing.SelectionSets [/color]
For Each objCadEnt In objBlock
With objCadEnt
If .ObjectName = "AcDbArc" Or .ObjectName = "AcDbSpline" Then
.Linetype = "Continuous"
End If
End With
Next
Next
Set objCadEnt = Nothing
Set objBlock = Nothing
ssblocks.Delete
End Sub