Yep, we've all been there and it is painful. Usually this happens with imports from AutoCAD. I usually run ThomThom's Flatten script in his Architect Tools set, just to make sure everything is on Z=0. Then I use S4U's Make Face script. Most of the time this works, but you might need to find little unconnected gaps, in this case, try ThomThom's Edge Tools.