POST
|
Still happening randomly to me, now on XP. Ran the same script 3 times for different sets of data each time. First 2 times ran fine, third set it did not like and gave this error....
... View more
10-17-2012
02:14 PM
|
0
|
0
|
527
|
POST
|
Getting this again, totally different computer and set of data. Error message and documentation is of no help trying to figure this one out...
... View more
08-26-2012
05:28 PM
|
0
|
0
|
3242
|
POST
|
Happening to me now as well on 2 different data sets. Using ArcMap 10. Haven't figured out a workaround yet... check this post to see how long it has been occurring for http://forums.arcgis.com/threads/47954-Merging-polygons-causing-them-to-dissapear-shape-file
... View more
08-12-2012
07:32 PM
|
0
|
0
|
2722
|
POST
|
Thanks Michael, "C:/PCM/" is the only directory reference in the script. Might it have something to do with backslashes being forward slashes?
... View more
08-01-2012
07:01 PM
|
0
|
0
|
527
|
POST
|
Hi friends, Can you help me with this? Script run on Windows 7 results in this:
Traceback (most recent call last):
File "U:\Tools\Toolbox\PCM_Data_Clip\PCM_Data_Clip.py", line 8, in <module>
arcpy.CreateFolder_management("C:/PCM/", property)
File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\management.py", line 14477, in CreateFolder
raise e
ExecuteError: ERROR 999999: Error executing function.
Failed to execute (CreateFolder).
Failed to execute (PCMDataClip).
Same script run in Windows XP, works fine. Both computers using ArcMap 10.1, script is kept on shared network drive so no differences there. Anyone know what the issue might be? Thanks!
... View more
08-01-2012
04:35 PM
|
0
|
6
|
1112
|
POST
|
Hi friends, I am experiencing a weird issue. We have a layer that seems fine. It is visible in our map and we are able to manipulate it in many ways. However, when trying to clip it out given a shapefile, we get the following error: Error 000229 Cannot open blah blah blah The ESRI help is not very helpful on this: http://help.arcgis.com/EN/arcgisdesktop/10.0/help/index.html#//00vp00000005000229.htm Obviously, the data exists, we can see it on our map. Furthermore, performing the same clip on a different computer works just fine. It's just this one computer that seems to be experiencing this issue. Any ideas? Thanks!
... View more
07-30-2012
04:20 PM
|
0
|
36
|
24264
|
POST
|
Good tips! Too bad we can't control it with Python 😞 Thanks anyways!
... View more
07-30-2012
03:25 PM
|
0
|
0
|
356
|
POST
|
Hi Christopher, You sir, must be some kind of genius. Alls I did was copy the script, but somehow this resulted in my templates losing their links. What confuses me even more is that the original copy (in original location) worked fine. In any case, I went back into the templates and fixed their links and it works like a charm. Thank you so much!
... View more
07-29-2012
02:25 PM
|
0
|
0
|
255
|
POST
|
Hi friends, I recently moved one of my scripts from one folder to another. Well I copied it actually. After updating the source in Arc, and running the script, I get the following error: Traceback (most recent call last): File "U:\Tools\Toolbox\GeoPDFMaker\GeoPDFMaker.py", line 472, in <module> selection = arcpy.SelectLayerByLocation_management(lyr, "INTERSECT", dfAsFeature, "", "NEW_SELECTION") File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\management.py", line 6585, in SelectLayerByLocation raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000368: Invalid input data. Failed to execute (SelectLayerByLocation). Failed to execute (GeoPDFMaker). Any ideas why this might be happening??? Thanks!
... View more
07-26-2012
06:08 PM
|
0
|
2
|
1212
|
POST
|
Hi friends, It's me again 🙂 I am having some difficulty getting arcpy.mapping.UpdateLayer to actually bring in labeling. It brings in everything else fine from the reference layer (legend colours etc...) except once it is in my map, the layer does not have the necessary labeling. If I go in and check the checkbox and fill in the expression myself, it works fine. Of course, when I open the reference .lyr file itself, it does indeed have the checkbox ticked and the expression is present. Anyone know why this happens? I've tried using the following bits of code as well, but they do nothing either 😞
if landtypelayer.supports("LABELCLASSES"):
arcpy.AddMessage("supports labelclass!")
landtypelayer.showLabels = True
for lblclass in landtypelayer.labelClasses:
arcpy.AddMessage("in labelclass forloooooooooooooop!")
lblclass.className = "Land Types"
lblclass.expression = "[GLM_CODE] & vbnewline & [GLM_PC]"
lblclass.showClassLabels = True
Any ideas? Thanks!
... View more
07-22-2012
01:47 PM
|
0
|
1
|
285
|
POST
|
Hi Ubanide, I know what you mean. Though I do not have a solution and haven't figured out how to do what you want (I wouldn't mind knowing), I can tell you how we do it. We simply make layer .lyr files with the symbology we want already customized and save them to our network drive. Then we just use those in our scripts to apply symbology from them. Might be a workaround for you if you can't figure out how to do it your way. Best of luck!
... View more
07-17-2012
07:00 PM
|
0
|
0
|
1881
|
POST
|
Hi friends, Does anyone have any ideas as to how I can collapse layers in my table of contents using a Python script? My current script grabs a MXD template, does a bunch of stuff, and saves a copy. Unfortunately a lot of the layers that begin minimized somehow get expanded and vice versa, and I can't figure out a way to control this. I know it's nitpicking, but it is helpful when you have a trillion things in the table contents to be able to collapse them all. Thanks everyone!
... View more
07-17-2012
03:07 PM
|
1
|
3
|
970
|
POST
|
Hi Jake, I come to you with news of great success. You were definitley on to something... My problem was that I was not re-defining my layer list after I made the layers I needed, and thus that's why it couldn't find the layer to move. So I just re-defined the layer list again and it works!!! Thanks friend!
... View more
07-16-2012
02:37 PM
|
0
|
0
|
801
|
POST
|
Hi Jake, Well I have those in my script towards the end already, but your suggestion was helpful in that it works better if I move that section of code after the refresh. Unfortunately, I can't get it to move layers that I create in the script, it will only move layers already existing in the template. If I attempt to move a layer I created within the script beforehand, I get Traceback (most recent call last): File "U:\Tools\Toolbox\InProgress\GeoPDF_Maker\GeoPDFMaker.py", line 410, in <module> arcpy.mapping.MoveLayer(df, refLayer, moveLayer, "BEFORE") NameError: name 'moveLayer' is not defined No matter how I define 'moveLayer', either as direct quotes of the layer name or using the variable name lyr.name == "Contours 10m - MARANOA REGIONAL" or lyr.name == outContours I still get the same result.... Thanks for the suggestion, I will keep fiddling with this.
... View more
07-16-2012
02:25 PM
|
0
|
0
|
801
|
POST
|
Hi friends, I am lucky to have found a solution to my previous problem, only through your kind help. However, I have come across another one that leaves me just as dumbfounded. Basically, I can't get arcpy.mapping.MoveLayer (http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000029000000) to work at all. It seems like very simply syntax, yet it just refuses to move my layers. At first, my own simple adaptation did not work, arcpy.mapping.MoveLayer(df, "Contours 10m - MARANOA REGIONAL", "SPOT 2009 Image Date", "BEFORE") so I tried based on their example for lyr in layerlist:
if lyr.name == "Contours 10m - MARANOA REGIONAL":
moveLayer = lyr
arcpy.AddMessage(moveLayer)
if lyr.name == "SPOT 2009 Image Date":
refLayer = lyr
arcpy.AddMessage(refLayer)
arcpy.mapping.MoveLayer(df, refLayer, moveLayer, "BEFORE") and still the outcome is the same. The layer that is supposed to be moved just stays where it was introduced. Has anyone come across this before or have any good tips for me? Thanks!
... View more
07-15-2012
06:05 PM
|
1
|
5
|
4203
|
Title | Kudos | Posted |
---|---|---|
1 | 07-15-2012 06:05 PM | |
1 | 07-17-2012 03:07 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|