Select to view content in your preferred language

Create Layer of Attribedutes

3720
23
02-04-2012 11:28 AM
josedonnelly
Emerging Contributor
I'm a newbie stuck with a very newbie problem. I imported a shape file from Arc and was successful in keeping all attributes to the features. However the file lists all 16k and I need to organize them by an attribute (in this case which zoning district they're in) As I stated the all have kept their 'zoning' number, now I just need to organize them by each of those zones, so all the "01" of the 'zoning' attribute are kept together. I think I have to create essentially subfiles, so I should make my scene window looks like

-Scene Light
-Panorama
-All Parcels (16,028)
    

  • Zoning 1

  • Zoning 2

  • Zoning 3

  • etc

  • etc


I'm racking my brain if this is right or if the other dozen methods using scripting and rules is the proper way. How do I create these subfiles? How do I select from my dozen attributes the attribute called "zoning" and then select them into "01" and "02" etc. I'm using Pro 2010.3 if it matters. After that I would like to select "stories" (aka height) and multiple it by 10 (10 feet per story)Thanks for any help that can be provided.
Tags (2)
0 Kudos
23 Replies
josedonnelly
Emerging Contributor
Matthias, I have learned so much in the last few weeks, so thank you! You've helped without doing the project for me and it's much appreciated. I've deleted my last two posts because I figured out the exceptions that my script was throwing.

So I've been trying on and off all day on stuff, now I've gotten to the point where my linking between the Stories attribute and the Stories Case statements exist. When they're linked, and I change the SOURCE  from Rule to Object, the value in the stories attribute disappears from my attributes table and there's no extrusion in the scene. It's got to be a scripting problem.

attr Stories = ""
attr ZONING_1 = ""

Lot-->
case ZONING_1 == "RURAL" :
    color ("#00C957")
    Shape01.
case ZONING_1 == "MIXED ECONOMIC DEVELOPMENT" :
        color ("#00611C")
     Shape02.
case ZONING_1 == "CORE RESIDENTIAL" :
   color ("#C82536")
   Shape03.
case ZONING_1 == "RES A" :
   color ("#CD5B45")
   Shape04.
case ZONING_1 == "RES B" :
   color ("#C73F17")
   Shape05.
case ZONING_1 == "INDUSTRIAL" :
   color ("#C77826")
   Shape06.
case ZONING_1 == "RURAL LIGHT INDUSTRIAL" :
   color ("#C8F526")
   Shape07.
case ZONING_1 == "PDD" :
   color ("#CAFF70")
   Shape08.
case ZONING_1 == "RURAL HAMLET" :
   color ("#CC4E5C")
   Shape09.
case ZONING_1 == "RESIDENTIAL LARGE LOT" :
   color ("#CC1100")
   Shape10.
case ZONING_1 == "HAMLET" :
   color ("#C67171")
   Shape11.
case ZONING_1 == "COMMERCIAL HAMLET" :
   color ("#CC00FF")
   Shape12.
case ZONING_1 == "RIVERFRONT RURAL" :
   color ("#00FFAA")
   Shape13.
case ZONING_1 == "COMMERCIAL" :
   color ("#008B45")
   Shape14.
case ZONING_1 == "RES C" :
   color ("#C82536")
   extrude(20)
   Shape15.
case ZONING_1 == "MULTI-FAMILY" :
   color ("#C71585")
   Shape16.

case Stories == "1" : extrude(10)
case Stories == "2" : extrude(20)
case Stories == "3" : extrude(30)
else : NIL
0 Kudos
MatthiasBuehler1
Deactivated User
hi !

can it be that Stories is a float value and not a string ?

5 is not "5"

maybe try it without the " ..

let me know ..
0 Kudos
josedonnelly
Emerging Contributor
No, that didn't work. I removed the quotes, and it threw an exception, "No such function:bool ==(a:str,b:float)".
0 Kudos
MatthiasBuehler1
Deactivated User
did you also adapt the attr ?

attr Stories = "" would be wrong in this context ..


attr Stories = 0
0 Kudos