Exploded view algorithm for CAD?

I'm making a program to view 3D CAD models and would like to build in automated exploded views. All the assemblies t...