valrik

Random Building Types

Discussion created by valrik on Oct 27, 2013
Latest reply on Oct 28, 2013 by MBuehler-esristaff
Hi

I'm wondering if it is possible to define how a building is built by randomly selecting from a list.

I have written this:

@Group("CONSTRUCTION DETAILS")
@Range(House = "House",Inn = "Inn",Smith = "Smith",Shop = "Shop")
@Order(5)
attr BuildingType = ""


To create a list of types.  I want the type to be selected randomly except there has to be more houses than anything else, more shops than Inns and Smiths.

Also, can the size of the initial shape be used as well.  So for example, if it is below a certain size, it cannot be an Inn. Or if it is below a certain size we could just place an of something else. A well or stocks for example.

I remember once reading about case and %'s but I don't get how to use it.

Outcomes