|
POST
|
Thanks Bruce Bacia, you have really improved my python script writing skills. Can you help me with this please; i want to generate a pdf output by using the arcpy.exporttopdf function, i want the final output to use this nomenclature for naming the pdf output (plot_no.pdf); the plot_no would be derived from an attribute value under the field named plot_no in the attribute table. Please do you have any suggestions. Thanks
... View more
08-23-2012
04:30 PM
|
0
|
0
|
1687
|
|
POST
|
Im trying to automatically get the system time and date updated with the update cursor script, this is my script and the error myField = "Date_Gener" >>> rows = arcpy.UpdateCursor("Parcels") >>> for row in rows: ... row.setValue(myField,'Date ( )') ... rows.updateRow(row) ... Runtime error Traceback (most recent call last): File "<string>", line 2, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\arcobjects\arcobjects.py", line 1007, in setValue return convertArcObjectToPythonObject(self._arc_object.SetValue(*gp_fixargs(args))) RuntimeError: ERROR 999999: Error executing function. The value type is incompatible with the field type. [Date_Gener] Any suggestions? Please....
... View more
08-23-2012
03:30 PM
|
0
|
0
|
955
|
|
POST
|
Thanks all i got it with all your suggestions, what happened was that i had to start an edit session to be able to see the changes. With this i have some layers from a parcel fabric within my dataframe which makes it difficult for me to use the edit = arcpy.da.Editor(workspace) it throws this error - can not open workspace. Any suggestion would go a long way. Thanks
... View more
08-23-2012
02:12 PM
|
0
|
0
|
955
|
|
POST
|
i want to generate a pdf output by using the arcpy.exporttopdf function, i want the final output to use this nomenclature for naming the pdf output (plot_no.pdf); the plot_no would be derived from an attribute value under the field named plot_no in the attribute table. Please do you have any suggestions. Thanks
... View more
08-23-2012
02:02 PM
|
0
|
0
|
955
|
|
POST
|
I used your code Code: rows = arcpy.UpdateCursor("Parcels", "FID = 1") for row in rows: row.setValue("GENERATED", "GENERATED") rows.updateRow(row) i did not get any error but the record was not updated? Any suggestions
... View more
08-23-2012
01:56 PM
|
0
|
0
|
955
|
|
POST
|
mzcoyle, please there is no difference between the code you pasted and the code i used? Please can you elaborate on the setvalue? Thanks
... View more
08-23-2012
01:16 PM
|
0
|
0
|
955
|
|
POST
|
This is the new code i constructed: rows = arcpy.UpdateCursor("Parcels", "FID = 0") >>> for row in rows: ... row.setvalue("GENERATED", "GENERATED") ... rows.updateRow(row) ... and this is the error message i received: Runtime error Traceback (most recent call last): File "<string>", line 2, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\arcobjects\_base.py", line 28, in __getattr__ raise AttributeError("%s" % attr) AttributeError: setvalue
... View more
08-23-2012
12:24 PM
|
0
|
0
|
1630
|
|
POST
|
Thanks for all your response, but can i start an edit session automatically with arcpy script? Thanks
... View more
08-23-2012
11:27 AM
|
0
|
0
|
1630
|
|
POST
|
Im trying to update a field called "GENERATED" with an attribute called "GENERATED" every time i autogenerate a map, i constructed this script and it is not updating and i didnt see an error(s) rows = arcpy.UpdateCursor("Parcels",'[OBJECTID] = "1"') row = rows.next() while row: row.setvalue(GENERATED, GENERATED) rows.updateRow(row) row = rows.next() Please any suggestions. Im desperate. Thanks
... View more
08-23-2012
07:27 AM
|
0
|
42
|
7904
|
|
POST
|
Thanks i got a work around for it, all i need now is a custom form to select a particular plot_no from a parcel layer in my data frame and create pdfs using the plot_no from a field called plot_no so that the name of my pdfs changes with different plot_nos. How can i also display a message such as the 1 below without using a script tool, Any suggestions? Thanks # Report a success message arcpy.AddMessage("All done!") except: # Report an error messages arcpy.AddError("Could not complete the selection") # Report any error messages that the selection tool might have generated arcpy.AddMessage(arcpy.GetMessages())
... View more
08-21-2012
07:09 PM
|
0
|
0
|
1687
|
|
POST
|
Do you know of any arcpy script that can change an field attribute property named Bearing from double - numeric to double - direction ( radians & quadrant bearing) and field attribute property named Distance to numeric and rounding of 2 decimal places. Thanks
... View more
08-20-2012
02:39 PM
|
0
|
0
|
1224
|
|
POST
|
Thanks brucejr312 for the python script for clipping the layers data frame extent, i've been trying to use your script under a single button so that all the clipping processes would be done by the click of a botton but i can't get to hardcode the exportLayer = arcpy.GetParameterAsText(0) as i.e. (datalayer1, datalayer2, datalayer3 etc) instead of using the script as a script tool and i also want the results of the clipping process to be enabled and added to the dataframe by default and i also want the output to be overwritten each time i run the clip.Please can you profer a solution to this. Thanks once again.
... View more
08-19-2012
12:34 PM
|
0
|
0
|
1224
|
|
POST
|
Yes the SQL Statement is valid for selecting records, and i intend to run the script tool in an active view not within a model builder. After the query is completed no record is selected even for the valid SQL Statement.
... View more
08-18-2012
01:42 PM
|
0
|
0
|
1224
|
|
POST
|
Thanks rfairhur24 for the nugget of information, but when i run the script it does not return any record(s)? Any other suggestion(s)
... View more
08-16-2012
01:41 PM
|
0
|
0
|
1224
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-19-2015 08:49 AM | |
| 1 | 10-15-2013 04:42 AM | |
| 1 | 09-20-2016 03:45 AM | |
| 2 | 09-25-2016 03:50 PM | |
| 1 | 08-25-2012 09:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|