|
POST
|
Was wondering if the print statement was just your "test" method. However, was wondering if there was some "trick" that I wasn't aware of. Thanks for the input. Curious as to why my changes don't show until I do a save. Might have to play around with that some more. Are you running in ArcMap 10.1 sp1? R_ Yes I'm using 10.1 SP1. I ran into a problem a while back with a corrupted data frame throwing all kinds of weirdness when exporting to PDF messing with the scale, layout elements, etc. If it is every map you try to export not sure what would cause that.
... View more
06-12-2013
07:53 AM
|
0
|
0
|
2797
|
|
POST
|
Well, without enough information, I was assuming that they are running this script outside of ArcMap, and not within the python window. Not sure in the python window, as I do all my python stand alone. When using arcpy.mapping in standalone, I absolutly have to do a mxd.save() before I export to pdf, or the export looks exactly like the one the last time I did a save regardless of the chages arcpy.mapping just made. also, you say you put a print statement after the refresh in yours, curious what adding a print statement after the refresh does? Print what, and how is it changing the output to pdf? R_ I run my script stand alone and a save is not necessary. The map changes the layout and extent before exporting. The print statement isn't really necessary either as I just tested, for me it just prints where the document is being exported.
... View more
06-12-2013
07:06 AM
|
0
|
0
|
2797
|
|
POST
|
Have you tried to save the mxd before the export so that the changes you made take effect? R_ That really shouldn't be necessary. I'd try just adding a print statement after your refresh active view. That is all I have and it works fine.
... View more
06-11-2013
11:55 AM
|
0
|
0
|
2797
|
|
POST
|
I would try printing out your elev value for each iteration of fcList to make sure it is what you expect.
... View more
06-06-2013
11:33 AM
|
0
|
0
|
4696
|
|
POST
|
This should be all you need if you are going that route. fld_OBJID.type = "Long"
... View more
06-06-2013
10:36 AM
|
0
|
0
|
2059
|
|
POST
|
That method works fine for me. Are you sure your field is the right type (long int)?
... View more
06-06-2013
10:30 AM
|
0
|
0
|
4696
|
|
POST
|
Yes you'll need to specify the type due to some quirks in how field mapping is implemented by Esri through arcpy. A long or double should suit your needs. I go through the same issue in this thread. http://forums.arcgis.com/threads/72269-field-map-problems
... View more
06-06-2013
10:05 AM
|
0
|
0
|
2059
|
|
POST
|
Here's a thread that goes through several examples of field mapping. http://forums.arcgis.com/threads/33060-field-mapping-in-python-for-ArcGIS-10
... View more
06-06-2013
09:34 AM
|
0
|
0
|
2059
|
|
POST
|
How I mean to phrase this question is, how to round a number (say 11) to 0 instead of 100? You would use a negative number for the second round() parameter of course. Use int() to ensure it returns an integer instead of float. int(round([field], -2))
... View more
06-06-2013
08:11 AM
|
0
|
0
|
4696
|
|
POST
|
math.ceil() always rounds up. math.floor() rounds down. round() rounds the the nearest integer or to a particular decimal place if the second parameter is specified. round([field], 2)
... View more
06-06-2013
08:05 AM
|
0
|
0
|
4696
|
|
POST
|
Try going through this tutorial, it covers most of the basics. http://training.esri.com/gateway/index.cfm?fa=catalog.webCourseDetail&courseID=1868 You can search for other python seminars/courses in the training catalogue.
... View more
06-05-2013
12:14 PM
|
0
|
0
|
2322
|
|
POST
|
@Dwight Nice implementation. Just a couple questions I had. Did you find a particular advantage to using arcpy.gp.overwriteOutput vs .env? Also, how do you pass in your obsList object? Or is that supposed to be the obsInfoList?
... View more
06-05-2013
10:40 AM
|
0
|
0
|
2889
|
|
POST
|
VBA is supported in the same manner in 10.1 as in 10.0. I'd imagine it is the same for 10.2 though I haven't used it yet. How you describe your process seems simple enough, you shouldn't have too much trouble converting this to arcpy.
... View more
06-05-2013
06:07 AM
|
0
|
0
|
2322
|
|
POST
|
VBA still works in ArcGIS... for now. Also, you should describe your work flow and how you will be using this code as it is not at all apparent from your code alone.
... View more
06-05-2013
05:24 AM
|
0
|
0
|
2322
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2011 10:36 AM | |
| 1 | 08-16-2012 10:48 AM | |
| 1 | 10-31-2012 08:39 AM | |
| 1 | 07-16-2012 01:52 PM | |
| 1 | 03-15-2012 10:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2024
11:12 PM
|