|
POST
|
Xander Bakker ok, so for example, if you want to write one code and all of sudden it gave you the error in python window and then you turn to pyscripter and use the same one code and test it. Is that what you are suggesting ?
... View more
01-25-2015
01:45 PM
|
0
|
4
|
683
|
|
POST
|
I am trying to understand between the two Pyscripter and Python Window and how it works together. So for the Pyscripter you just write to test it and if it works you copy and paste them to the Python Window but change to the functions or classes to Python window where they understand it and run from Python windows? Or do I just write the code within the Pyscripter and run the code from there and will that change in ArcMap ? Thanks
... View more
01-25-2015
10:19 AM
|
0
|
6
|
1321
|
|
POST
|
So the Pyscripter doesnt understand so I have to manually change the mxd to something else like ?
... View more
01-25-2015
09:41 AM
|
0
|
1
|
1321
|
|
POST
|
See the error >>> mxd.replaceWorkspaces(path + r"\City_of_Westerville.mdb", "ACCESS_WORKSPACE", path + r"\Westerville.gdb", "FILEGDB_WORKSPACE") Traceback (most recent call last): File "<interactive input>", line 1, in <module> NameError: name 'mxd' is not defined
... View more
01-25-2015
09:40 AM
|
0
|
2
|
1321
|
|
POST
|
Hi Dan, I am starting to work on using Pyscripter and I am learning how to use. Now the thing I have a trouble writing code I am using replaceWorkspace. That code requires four parameters however when I write the code there is no pull up list to select and click to choose from. Is something wrong with the Pyscripter I need to fix the problem ?
... View more
01-25-2015
09:20 AM
|
0
|
4
|
1321
|
|
POST
|
Change of scernico, I am at home and have ArcGIS 10.1 and got to download Pyscripter and did some research on Pyscripter and how it works and so on. I found really good info about it here : Advanced Geographic Research: Software This article explains how to set it up and run with Pyscripter. Now I have something in my mind is Can I have ArcMap open while Pyscirpter open at the same time ?
... View more
01-24-2015
07:45 AM
|
0
|
6
|
1321
|
|
POST
|
Using Python Windows within ArcMap. I think I need to try and use PyScripter. I have to ask my IT Specialist for permission to use it on my computer. Thanks.
... View more
01-23-2015
01:17 PM
|
0
|
10
|
1375
|
|
POST
|
What are you using to run this code ? PyScripter ? BTW Thanks.
... View more
01-23-2015
12:58 PM
|
0
|
12
|
1375
|
|
POST
|
Earlier I mention that it worked.. That was all about the file geodatabase. Now I have one shapefile in the same mxd that did not replace to the new workspace. >>> mxd = arcpy.mapping.MapDocument("CURRENT") >>> path = "E:\ned10DEM\Contours" >>> mxd.replaceWorkspaces(r"\E:\FY2011_projects\10mNED\Contours","SHAPEFILE_WORKSPACE", path + r"\","SHAPEFILE_WORKSPACE") I still got an error here : Parsing error SyntaxError: invalid syntax (line 1)
... View more
01-23-2015
12:34 PM
|
0
|
14
|
1375
|
|
POST
|
Are you saying that when I copy and paste the code into python window in ArcMap does it give you an errors ? So that means do I have to re-type them ?
... View more
01-23-2015
12:25 PM
|
0
|
15
|
1375
|
|
POST
|
I put that damn r into what you suggest and it worked ... Is the "r" stand for reclusive , correct ?
... View more
01-23-2015
11:48 AM
|
0
|
17
|
1375
|
|
POST
|
Right now I am at work and here is the error i am having .... >>> mxd.replaceWorkspaces("","NONE","E:\State_mosaic\Elevations.gdb","FILEGDB_WORKSPACE") Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\utils.py", line 181, in fn_ return fn(*args, **kw) File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\_mapping.py", line 915, in replaceWorkspaces return convertArcObjectToPythonObject(self._arc_object.replaceWorkspaces(*gp_fixargs((old_workspace_path, old_workspace_type, new_workspace_path, new_workspace_type, validate), True))) ValueError: MapDocObject: Unexpected error
... View more
01-23-2015
11:10 AM
|
0
|
1
|
2259
|
|
POST
|
the only problem is that my computer is under Government and it must be approve before I can use them. Does it have any issue ?
... View more
01-23-2015
09:47 AM
|
0
|
1
|
2259
|
|
POST
|
I am a beginner and just starting to learn how to use Python I learned from Python Scripting for Map Automation. My question to you is that whenever I get an error I see the word Traceback or errors in highlight red in my python window. My question to you is do I need to have a pythonWin installed ? My computer at work does not have it but I use the python Window inside ArcMap. Are there site that can I read or learn about the Traceback error ? I am sure there are bunch of question that Traceback has in it. So what does Traceback means and what does it do ? Thanks
... View more
01-22-2015
04:33 PM
|
0
|
34
|
10647
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-01-2022 03:43 PM | |
| 1 | 09-28-2020 09:34 AM | |
| 2 | 09-24-2025 09:48 AM | |
| 1 | 09-22-2025 08:29 AM | |
| 1 | 09-17-2025 12:58 PM |
| Online Status |
Online
|
| Date Last Visited |
3 hours ago
|