Why does "ent = sslsppipe.item(i)" not work?
Am I missing something? Layer, Color, Linetype etc. all work.
Set SSLSPPipe = Documents(0).SelectionSets.Add("SSLSPPipe"
gpCode(0) = -4
dataVal(0) = "<AND"
gpCode(1) = 8
dataVal(1) = "XTP*"
gpCode(2) = 0
dataVal(2) = "LINE"
gpCode(3) = -4
dataVal(3) = "AND>"
groupCode = gpCode
dataCode = dataVal
SSLSPPipe.Select acSelectionSetAll, , , groupCode, dataCode
intNoItems = SSLSPPipe.Count
intTemp = 1
If intNoItems > 0 Then
For i = 0 To SSLSPPipe.Count - 1
ent = SSLSPPipe.Item(i)
strEntLayer = SSLSPPipe.Item(i).Layer
strEntType = SSLSPPipe.Item(i).ObjectName '.OwnerID
strEntColor = SSLSPPipe.Item(i).Color
strLineType = SSLSPPipe.Item(i).Linetype
strLineLinetypeScale = SSLSPPipe.Item(i).LinetypeScale
Am I missing something? Layer, Color, Linetype etc. all work.
Set SSLSPPipe = Documents(0).SelectionSets.Add("SSLSPPipe"
gpCode(0) = -4
dataVal(0) = "<AND"
gpCode(1) = 8
dataVal(1) = "XTP*"
gpCode(2) = 0
dataVal(2) = "LINE"
gpCode(3) = -4
dataVal(3) = "AND>"
groupCode = gpCode
dataCode = dataVal
SSLSPPipe.Select acSelectionSetAll, , , groupCode, dataCode
intNoItems = SSLSPPipe.Count
intTemp = 1
If intNoItems > 0 Then
For i = 0 To SSLSPPipe.Count - 1
ent = SSLSPPipe.Item(i)
strEntLayer = SSLSPPipe.Item(i).Layer
strEntType = SSLSPPipe.Item(i).ObjectName '.OwnerID
strEntColor = SSLSPPipe.Item(i).Color
strLineType = SSLSPPipe.Item(i).Linetype
strLineLinetypeScale = SSLSPPipe.Item(i).LinetypeScale