Multibody Simulation of Chain Assembly