Thanks for the response Kdub,
however I am not a coder, I can modify some code and can sort of read it when its in front of me but I am not good at writing it and everything you just said was like a jet flying at 30,000ft and I am at like 6 ft.
The code supplied was code I found on and modified it to work for what I wanted but like I said the request now is to have the blocks that were modified (only blocks with D_ID and D_model attribute tags) to be reselected or what ever the method is to then be put on a different layer.
What happens right now is that all of the blocks selected will be put on the layer but that's not what I want I just want the changed blocks to go to the new layer.