Hi,
I have a similar issue, although I've resolved the site coverage part with:
Lot7 -->
case geometry.area > FootprintAllowed : s('0.99,0,'0.99) center(xz) Lot7
else : Lot8
Where FootprintAllowed comes from the site coverage % multiplied by the parcel size. All of which is borrowed from cityengine.blogspot.co.nz 🙂
The rule also needs to use an envelope operation and unfortunately I can't get it to work in co-ordination with the site coverage part.
At the moment (and in order), I apply yard restrictions, set the maximum building footprint (based on the site coverage operation above), determine the max height, and then create a building envelope.
My issue is that the envelope operation uses the building footprints for its boundaries, rather than the original parcel boundaries. I need it to use the predetermined building footprints, but to work out the envelope based on the parcel boundaries. I've tried putting the envelope operation first, but haven't been able to get it to work.
Any help would be very much appreciated!
Thanks
Nate