Hello everyone
I'd do this with the "BREAKALL.lsp" published here.
For then most difficult : It has a subfunction that break all elements of pickset1 (all) with the element of pickset2 ( only the green poly ).
After a "ERASE" using a "FENCE" over a parallel outside ( very near) the green polyline ... and you have solved the problem of entities crossing the green poly
For other entities, there are several other algorithms outside / inside in published programs ..
Greetings.....