|
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
|
1431
|
|
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
|
1431
|
|
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
|
1431
|
|
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
|
1431
|
|
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
|
1431
|
|
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
|
1494
|
|
POST
|
What are you using to run this code ? PyScripter ? BTW Thanks.
... View more
01-23-2015
12:58 PM
|
0
|
12
|
1494
|
|
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
|
1494
|
|
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
|
1494
|
|
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
|
1494
|
|
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
|
2355
|
|
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
|
2355
|
|
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
|
11013
|
|
POST
|
Yes, I copied from MS Excel to ArcGIS 10.1 and the chart was able to show but the problem is that when you export the map to PDF . The chart itself doesn't show up. The labels are there but it is like a ghost. What I did was to find a way around to copy and paste to Paint and then save it to PNG and then you have to insert the PNG to ArcMap. It looks good to me. You still can do that with the PowerPoint and save it as TIFF as well but I find that Paint preserved the pixel to show labels sharper.
... View more
01-08-2015
02:54 PM
|
1
|
0
|
914
|
| 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 |
Offline
|
| Date Last Visited |
Friday
|