Siggi,
What you are asking is a huge task for anyone to help with, basically designing a machine for you to model. Also, helping you with homework (your request would be regarded as such) is outside our TOS. However, if you were to develop some approaches to attaching parts to other parts and then post here with "will this connection work," and make them specific questions and you may get some better assistance.