Hi Dragnsbld,
you say everything is correct
objects are on that layer
but you don't get a sel set
that tells me that *POSSIBLY* you *think* everything is correct but *maybe*
something isn't!
:-)
in my experience (limited as it is) if everything is correct, I *will* get a
selection set....
first thing that comes to mind is, what is the data type of your field
"RailLine"?
if a char type, what is the size (number of characters)
are you sure you don't have extra "empty characters" in the return?
does Len(strRailLine) return what you'd expect?
do you maybe need a trim on that string?
Set oLyrCheck = oDoc.Layers.Item( strRailLine & " Line")
that returns a layer?
otherwise I'm at a loss, it looks like it *should* work
have you restarted acad?
sometimes repeated runs during debugging will return erroneous results
hth
mark
wrote in message news:5976150@discussion.autodesk.com...
Here's a piece of the code:
strRailLine = rstDelTbl.Fields("RailLine").Value
intCode(0) = 0
varCodeVal(0) = "TEXT"
intCode(1) = 8
varCodeVal(1) = strRailLine & " Line"
ss.Select acSelectionSetAll, , , intCode, varCodeVal
Yes everything before this is correct..... NO the code doesn't produce a
SelectionSet. Yes the required objects are there.
FYI this is for 2k4 so I ca insure it's usability in the newer and older CAD
system.
Any ideas why?
Message was edited by: Dragnsbld