Hello, I tried that myself and I have to say, from the scratch it is not that easy.
Problem is, when you create a rectangle in ScenProc, it has no Attributes u can use to identify it, but that is what you will net to use it as a filter.
One possible workflow would be,
- first thing in your script, create the rectangle,
- save all polygons to a file
- import that file
then in your main script you can load that file and be able to use the FromFile attribute to filter.
now the rest of your script can be placed beneath that