Well, even though the op died, here is a guide on how to get help if you get walled in.
Check the map:
http://www.havenandhearth.com/forum/viewtopic.php?f=7&t=14717Find out what Supergrid you are in (if you can't see it, then get the map uploading tool, it will tell you what supergrids you have been in).
Post a thread asking for help from people in that grid to come build a ram, or check in Dwarves & Thieves for a friendly looking village in your grid and pm them to see if they will let you join, in only temporarily, and then you can port to their village, and go back and build a ram yourself.