A quick suggestion 1) use CreateExpression() to create a temporary field (lets call it C) that is the sum of A and B 2) CreateGroup() on field C using 60 for the number of classes
Good luck On Mon, Jul 23, 2012 at 8:53 PM, swag_ner_pth <[email protected]>wrote: > ** > > > Hello, > > What I am trying to do is change the color and icon used for points based > on two different fields contained in the table. However when I try this > using themes, one theme will overwrite the other. > > I've been testing out the GISDK and with it I can create a selection set > to change the color programmatically. I can't change the icon > programmatically with unique values (assigning random icons is possible). I > can't figure out a way to apply both of these changes. > > The fields I'm using are both strings. The one field, let's call it field > A, has 3 unique values and the other, field B, has 20 unique values. I want > to create a new set for every combination of the two fields. So I would end > up with 60 sets. > > I'm torn between trying to create this functionality with selection sets > using SelectByQuery() or themes using CreateTheme() and associated methods. > > I can logically do it with sets. For instance, to select all fields using > one of the unique values and color them red I can do this: > > qry1 = 'Select * Where A = "CurrentActive" ' > SelSet = SelectByQuery( "Active", "Several", qry1,) > SetIconColor("Active", ColorRGB(65535, 0, 0)) > > That creates a new set. Here is how I would do it currently with having > limited knowledge of the GISDK. In order to apply icon changes, I would > have to select from the newly created set and create another set. Then I > would reiterate until all of the unique values have sets. Then I would > delete the original set. ("Active" in the example.) > > But this seems unrefined and requires a lot of steps. I don't know how to > find the unique values for field B. Then I'd have to parse the values and > apply icon changes using SetIcon(). Because I'm making smaller sets, I'd > again have to delete the source set. > > I'm unsure of where to start when it comes to using themes with the GISDK. > I'm concerned about themes overwriting each other. I also don't know how to > use strings in the CreateTheme() method. > > What might work is doing a theme for just the icons and then doing the > color changes using SelectByQuery. > > I welcome any and all advice. > > Thanks in advance. > > > -- Armando Scalise
