If Polyline not exist in DWG , the AutoLisp return
"Command: ; error: bad argument type: lselsetp nil"
And broke the program.
I need help , to polyline not exists , continue the program
Thanks
Rodrigo
COMPLETE CODE :
This routine goes through all the polylines, and scours all items within this polyline.
The problem is that if I pass the name of a polyline that does not exist in dwg it returns the error above.
As I've already said, use an if statement to test for the existence of the selection set before using selection set functions (such as sslength, ssname etc.)