Hmm. Tim, I found my problem and you're right, they both work. However, the objects are closed, but according to the help files the lwpolyline dxf flags are this:
1 = Closed; 128 = Plinegen
So, while this code:
(ssget (list '(-4 . "<NOT")
'(-4 . "<AND")
'(0 . "LWPOLYLINE")
'(70 . 1)
'(-4 . "AND>")
'(-4 . "NOT>")
)
)
will find and remove polylines that are closed, it will not find ones that have both flags set, so the code needs to be:
(ssget (list '(-4 . "<NOT")
'(-4 . "<or")
'(70 . 129)
'(70 . 1)
'(-4 . "or>")
'(-4 . "NOT>")
)
)
or something similiar.
Thanks for getting me to dig in a little deeper and for the help. Anyway, the code you posted looks like it will only find plines and as long as they are not closed. I want to allow selection of any object type except closed plines. No biggie though. It's figured out. Thanks again.