Have you had a look into the system of SR3D Builder? There is a folder with connectivity information for each part. I really like, how it is done there. Unfortunately the system isn't in developed anymore because Sergio passed away. :-(
/Max
/Max