Find Ribs through API

Can any one tell how to find only Ribs in a para solidmodel (which contain no feature list) large assemble model  which contain 20000+ bodies .

From this large assembly, i want to separate only ribs by using API

Kindly post

Regards

SolidworksApi macros