Aniket
Forum Moderator
    if i_body.GetName().Equals(""):
        select_bodies.append(i_body)  
 
Are you checking bodies with blank name?