If you use foam (I'm thinking of using 4'x8'x2" sheets of insulation board, painted on upside), laid on a base of, say, 1/2" plywood, 1. How would you attach the foam to the plywood....assuming it's necessary to do so?....2. If necessary, how would you attach/secure accessories to the layout...maybe just use long enough screws to go thru the foam and catch the plywood base?
To quiet my previous layout I did a little overkill. After framing was done I covered the tops of the benchwork with fibrous floor underlayment material from Lowe's that comes in a roll. I used 2X3's for the framing, so I used a 2X3 as a guide to cut the width and attach it with glue.
I then attached the plywood to the frame. (My first mistake. See below.)
Next I attached the 2" foam to the plywood using Liquid Nails for Projects. It comes in a calking tube.
I then added Woodland Scenics Foam Roadbed under the track. I attached the roadbed, and the track to the roadbed with two-sided carpet tape. It held it all in place for nearly 15 years without moving. If it'll hold down a carpet it surely is strong enough to hold track and roadbed. All this made the trains whisper quiet traveling around the layout. In the below pictures you can see a cross section of all the layers.
The error I made in all of this was screwing down the plywood before glueing the foam on top! When I had to dismantle the layout prior to our move it was a mess trying to find the exact locations of where I screwed the plywood to the frame under the glued on foam! I had to dig up the foam until I found the screws under it. What a mess that made because I secured the foam so well all over with the Liquid Nails.
If you use any part of this method, make sure you glue the foam to the plywood before attaching it to the benchwork!! You can use 1 1/4" drywall screws to go through the foam and secure the plywood to the frame. it'll be easier to locate the screws later on if you have to remove the plywood.