Script for amorphous cell construction

Hello everyone,

I am looking for a script to construct an amoprhphous cell with polymer chains as well as gas molecules to avoid ring catenation. After the construction I want to stepwise delete the gas molecules to end with a cell only containing my polymer chains.
I tried deleting the gas by hand, but that changes the trajectory and then I can't use forcite anymore.
Does anyone have a script that could save my problem? I'm doing my master's thesis, so unfortunately I don't have the time to figure out scripting by myself. 

Thanks in advance!