I want to get all the top level components/solids present in drawing file. I have tried to get it using below code but it gives all components but I am interested in top level. If you see the attached image I want only 3 componets
but I get all componets i.e.
3. RIGHT_WHEEL - (TOYCAR_WHEEL)
4. LEFT_WHEEL - (TOYCAR_WHEEL)
Please help me in getting top level componets present in drawing.