Not possible because you can only select sub-object level when you have a single object selected.
Also, I don’t quite understand what you’re trying to do…
Selection is a built-in collection of the objects you currently have selected, not the edges within those objects, so you’re looping over the objects, but you’re not selecting any edges to remove.
Look in the help for Remove - there’s no need at all for the Max Modify and using it will slow down the procedure horribly. That also shows that you need to create a bitarray of vertex (or in your case, edge) numbers to remove.
If you could explain what you’re trying to achieve it might help.
Max 4.2 through 2014, Composite 2014.
nVidia 9800GTX+ (512MB) (Driver 314.22).
i5-3570K @ 4.4GHz, 8Gb Ram, DX9.0c.
Thanks for your quick reply
I have selected a number of editable poly objects which have already got their edges selected once i go to subobject level 2.
if i run the code on a single editable poly object it runs fine and removes the edges and vertices too as i have the ctrl key pressed. but i want to achieve this on many editable poly objects