Referencing different styles from within the same CGA file

Discussion created by nicolaisteino2 on Jan 30, 2013
Latest reply on Feb 6, 2013 by cbgthor624
Is there a way to reference different styles within a cga script?

Say you want to render different facade styles (or other characteristics defined by styles) based on a constraint map reference. How do you do that?

In my case, I want to control the amount of new buildings to replace historical buildings in an urban regeneration area by means of a gray scale map indicating the redevelopment ratios for different parts of the area. I have defined old and new building types with different names within one cga file (quite a hassle and not very clean) but I would like to simplify my script (and my work) by using styles. Only, I can't figure out a way to do it.

Can you help?