My team is working on building the footprints for a college campus and had a few questions regarding using a coding source to create rules for our data in CityEngine. We figured out how to extrude each building at it's "mean" height from our GIS data and we have over 100 buildings in which we created a rule attribute (Rule2_face) in ArcGIS Pro but need help incorporating the attribute with each building in a script form. We found a few examples we can refer but not quite helpful for the beginner stage.
extrude at mean height:
/**
* File: rule.cga
* Created: 9 Jan 2019 17:40:15 GMT
* Author: martinmc
*/
version "2018.0"
attr ZonalSt_campus_1_MAX = 0
attr buildhei_5 = 0
Lot-->
extrude (ZonalSt_campus_1_MAX)
extrude (buildhei_5)