topological relationship and assembly sequnce using api

hi

for my project i need a code  to extract the topological relationship between components  in assembly and their assembly sequence

this data is used to generate a process planning  for my project

plz help............

SolidworksApi macros