Curtain wall level


I have an isovist script for a 4 story building. The script works perfectly however, I’m having a bit trouble with the curtain wall acting as an outer boundary.

When you build a huge curtain wall from the ground floor to the top floor, you usually put ‘level 1’ on revit. This causes a trouble because when I call out lets say level 2 or 3 on dynamo, all the curtain walls do not show up since they are technically level 1.

Is there a way to solve this problem? thank you

Can you share your script too? Otherwise it is hard to see WHY you get a wrong result.