It's same as when you calculate a beam on elastical supports, you represent soil by coefficient of reaction.
Soil - loose k=0.1-0.5 kg/cm3
- medium dense k=0.5-5
- dense k=5-10
- compact k=10-20
- hard k=20-100
you select joints at base then assign->point spring->kx ,ky,kz...etc.
You must add your fondations as a shell model (slab) the joint correspond to shell mesh.
i hope this help.