daniel.oshaughnessy

Accessing Street Attributes

Discussion created by daniel.oshaughnessy on Apr 18, 2012
Latest reply on Apr 19, 2012 by MBuehler-esristaff
Hi all,

I am working on designing a "typical" city block that includes basic row houses. I have managed to figure out the general shape grammar and even add unique cases for when the block borders a commercial street (see image below).

[ATTACH=CONFIG]13633[/ATTACH]

The problem is that, right now, these unique cases are essentially just hard-coded in based on a user-specified typology. What I would like instead is for the block to be able to draw information from adjacent streets. Ie, it should know when the "type" of an adjacent street is "COMMERCIAL" (for example) and use that information to trigger the new block shape.

Is there a way to access street attributes in the CGA script? There are clearly width values stored as Object Attributes called streetWidth(0), streetWidth(1), etc....but how do you reference these in your code?

Any help is appreciated...

Attachments

Outcomes