getbasisrange function

Extract the range from a basis object