Thanks to this post at Another GIS Blog I was saved the time of having to figure out how to do this calculation on my own.
And I just the author posted that TODAY, just 8 hours ago. That is crazy.
Thanks Guy.
Wednesday, November 30, 2011
Tuesday, November 29, 2011
Tricky Data driven pages
I was having a problem with a data driven pages script where I needed to use the pageRow property to access an attribute. The only examples I found required hard coding the field name but after a little Googleing I found someones suggestion to use:
fieldName = arcpy.GetParameterAsText(1)
mxd.dataDrivenPages.pageRow.getValue(fieldName)
This brings in the field name from the input.
fieldName = arcpy.GetParameterAsText(1)
mxd.dataDrivenPages.pageRow.getValue(fieldName)
This brings in the field name from the input.
Subscribe to:
Posts (Atom)