Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
6
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Jul
16
comment Checking for overlaps using python
I have indented it correctly in the code its just how it got posted. The code now does find overlaps but only in the first layer in the table of contents. It will say "id 2 overlaps 4" then under it "4 overlaps 2". Even though i have 3 layers in the TOC and it only looks at the top layer in TOC. How can i make it go through the layers in TOC? Also if i change the name of the first layer it gives back error msg that "layer does not exist" . Not sure what is going on, but things were much easier when arcmap used VBA.
May
28
comment Checking for overlaps using python
As long as i can run it as a tool within the current mxd open then thats fine. Thats why i use the mapping module, to call "current" mxd. Not sure of what other way.
May
28
comment Checking for overlaps using python
Thanks for the replies. I am using 10.0. Seems no matter how i change the code it always gives back error 99999. Maybe it doesnt like how i pass the feature class list through the search cursor.
Dec
2
comment Geodatabase add current date and time to attribute
I tried using the .bat file but i get operation failed. Maybe its to do with privileges on win XP.
Feb
21
comment VBA Convert decimal degree to Meters button
I think it could also be how i define WGS. i used Set pProjCoordSystem = pSREnv.CreateProjectedCoordinateSystem(esriSRProjCS_WGS1984UTM_14N) What should i be using if i just want the standard WGS1984?
Nov
22
comment get layer names from a group within a group
Ok solved it by removing the if statement and changing the line For l = 0 To pCompLayer.Count - 1 To For l = 0 To 100 - 1
Nov
21
comment get layer names from a group within a group
Thanks for the reply. I found the code works but will not list the layers at the bottom of the list. I had to modify the code for VBA. I had to add the for loops so it will show all the layers. Without the for loop it just shows the first nested group and thats it. But not sure why it misses off the last 8 layers in the TOC. Please see code below