Why not use an electro magnet?

I industry they use a lot of vacuum tables to hold objects.