change note layer on sheet that is not part of the sheet format

Hi guys,

Currently I am busy wiht writing a macro that moves all notes on a drawing to a specific layer.

For this the macro loops through sheets on a sheet it loops through the views.

Changing layers works very well. But there is one complication.

Looping through notes on the first view of a sheet it changes not only the notes on the sheet, but also the notes on the sheetformat.

Is there a way to only get the notes on the sheet or exclude the notes on the sheet format?

BR,

Rico

SolidworksApi macros