|
POST
|
How can I make sure the MapDocument goes to full extent before I export? Have you tried something like: mxd = arcpy.mapping.MapDocument(PathToMXD)
df = arcpy.mapping.ListDataFrames(mxd, "myDataFrame")[0]
lyr = arcpy.mapping.ListLayers(mxd, "myRasterLayer")[0]
df.extent = lyr.getExtent() Jeff
... View more
11-23-2011
08:40 AM
|
0
|
0
|
2028
|
|
POST
|
The suggestions you have for working only with DDP are valid but realize that all this "custom" behavior could also be accomplished using arcpy.mapping (with or without DDP). Also, at 10.1 we will add arcpy.mapping support for bookmarks so you can iterate through a list of bookmark extents. Jeff
... View more
11-23-2011
08:24 AM
|
0
|
0
|
2113
|
|
POST
|
Via the Catalog Window (in ArcMap) right-click on the script tool and choose Item Description from the context window. The choose edit. Jeff
... View more
11-23-2011
05:10 AM
|
0
|
0
|
1728
|
|
POST
|
I completely reproduced the directly structure with made up files and it all worked. You must have a logical error somewhere in your file name or path. Also - you mention that you get an crash report. Are you running this from within ArcMap or as a stand alone script? Jeff
... View more
11-21-2011
01:42 PM
|
0
|
0
|
1053
|
|
POST
|
There is a known issue with calculating adjacent fields on shapefiles. The plan is to address this issue with SP4. In the meantime, try using a fGDB FC or the calculate adjacent fields sample on the resource center. Jeff
... View more
11-21-2011
01:10 PM
|
0
|
0
|
2564
|
|
POST
|
The only way you will be able to see the help for 10.1 is if you have access to beta. Attached is a screenshot showing the new legend paramater. Jeff
... View more
11-11-2011
05:20 AM
|
0
|
0
|
2534
|
|
POST
|
The only way that I can think to do this would be to author each layer with all the fields turned off, save that to a layer file and then use arcpy.mapping UpdateLayer. I'm not sure about use use case but if you had 2 layer files for each layer, you could automate the turning on and turn off field visibililty. If this is a one time only thing, then automating this with updatelayer doesn't make sense. Jeff
... View more
11-10-2011
06:37 AM
|
0
|
0
|
581
|
|
POST
|
Again, try the 10.0 suggestion above but if curious, this is what my 10.1 hyperlink python code block looks like: import arcpy, os, webbrowser
def OpenLink( [HyperLink] )
mxd = arcpy.mapping.MapDocument("current")
mxdFolder = os.path.dirname(mxd.filePath)
fullPath = os.path.join(mxdFolder, [Hyperlink])
webBrowser.open(fullPath)
return
... View more
11-10-2011
06:28 AM
|
0
|
0
|
1231
|
|
POST
|
I was curious so I did some searching. I found: Dim sCurPath sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") But this returns the path relative to the ArcGIS install (i.e., the bin directory). I'm not sure how you would do this with vbScript. For 10.0, have you tried setting your image names to be relative paths. For example, "imageFolder\imageName.tif". See http://webhelp.esri.com/arcgiSDEsktop/9.3/index.cfm?TopicName=Adding_hyperlinks_to_features&anchor=cs272085 At 10.1 we are going to support Python as a scripting choice and with that you'll have some more options.
... View more
11-10-2011
06:00 AM
|
0
|
0
|
1231
|
|
POST
|
Yes, I deleted the table from the orginal source. When I opened the MXD, the table was broken and the join/relates were missing from the table properties dialog. When I ran the mxd data source functions pointing to the new workspace, everything was reset. Jeff
... View more
11-09-2011
05:14 AM
|
0
|
0
|
3152
|
|
POST
|
Could you please send me a map package that includes your grid. I'd like to do some testing on it. There is no reason it should take 7 minutes. Please send map package or zip to [email protected] Thanks, Jeff
... View more
11-09-2011
05:11 AM
|
0
|
0
|
2160
|
|
POST
|
How large is the mxd? Is it possible it is bloated? Have you tried saving it to a new file? Do you have any broken SDE data sources? Jeff
... View more
11-08-2011
05:50 AM
|
0
|
0
|
2160
|
|
POST
|
The solution would need to include arcpy.mapping. Here is a great example in help where two different MXDs are used to handle facing pages (left and right pages use different layout settings). All pages are combined into one fine PDF using arcpy.mapping. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s90000002p000000.htm Jeff
... View more
11-07-2011
05:47 AM
|
0
|
0
|
4800
|
|
POST
|
I guess it depends on how the new lines are entered. I had used shift-enter when entering multiple lines rather than \n. My multi line text was showing the appropriate height. I'm glad you got it to work. Jeff
... View more
11-07-2011
05:42 AM
|
0
|
0
|
1138
|
|
POST
|
Have you tried using arcpy.mappingUpdateLayer? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/UpdateLayer/00s30000003p000000/ Jeff
... View more
11-07-2011
05:21 AM
|
0
|
0
|
1766
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-05-2025 11:20 AM | |
| 3 | 06-05-2025 09:21 AM | |
| 1 | 05-14-2025 01:19 PM | |
| 2 | 04-24-2025 07:54 AM | |
| 1 | 03-15-2025 07:19 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|