http://rtb-archive.host22.com/add_ons/Client_SaveEnvironment.zip
I believe that saves environments with bricks, personally if I need to save an environment I just create a new file for it. Go into one of the sky_blah add-ons and see how they do it. It's pretty simple imo.