Select to view content in your preferred language

Conditional rule based on object attributes

716
1
10-16-2012 03:31 PM
by Anonymous User
Not applicable
Original User: mc2g

Hi guys,

I am trying to write a simple conditional rule to generate some built form in CGA (based on the generic modern building rule from the example)

Basically I have a Lot parcel file (.shp) with area and Storey data. I want to use these object attributes to control the Front setback mode.

Say any parcel above or equal to 8 storeys and with a lot area F_Area larger than 1000sqm will have a podium tower type setback, otherwise no setback is required.

attr Front_Setback_Mode =
 case Nbr_of_Floors >= 8 && F_AREA > minArea : "Podium Tower Setback"
  else : "None"


Based on the rule, the selected parcel in the attached screen capture is 8 storeys but have a lot area smaller than 1000, hence should have no setback. It seems like only the Nbr of floors part of the conditional rule passed through. Can someone please give me some pointers on what I did wrong?

Regards,

M.C.
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: matthiasbuehler

Maybe because F_AREA is defined as a string ?

attr F_AREA = ""
0 Kudos