I am trying to write a rule file which splits shapes as in Fig.2 and creates building layouts according to certain conditions (Fig.3). I want the last rule (in Yellow rectangle in Fig.1) to have the information number of generated predecessor shapes (in Green rectangles). I am trying to achieve that the rule splits the GFAR value into Buildings; so the Building rule has to know the number of previously created shapes. Note that rules are conditional, so not all the splits create a building within. So, number of splits do not help. Actually I am trying to find a way to import the number of shapes that reach up to "Building" rule.
I hope somebody can help me about that workflow. Thanks in advance.