POST
|
So I have a DDP mxd with two data frames, one with vector data and the other with imagery and a raster with transparency. I have set the imagery extent to the vector data frame, this works great except when my DDP has rotation angles, the the imagery dataframe does not rotate with the vector data frame. If ESRI could only get the PDF transparency export issue figured out.... Pretty easy Fix... mxd = arcpy.mapping.MapDocument("MXD_PATH")
frames = arcpy.mapping.ListDataFrames(mxd)
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
## Sets the rotation angle of the
## dependant data frame to the data
## frame with the DDP index layer,
## assuming it is first in the TOC
frames[1].rotation = frames[0].rotation
arcpy.mapping.ExportToPDF(mxd, "DOC_NAME"+ str(pageNum) + '.pdf')
del mxd
... View more
02-13-2013
10:27 AM
|
0
|
0
|
843
|
POST
|
Pretty easy Fix... mxd = arcpy.mapping.MapDocument("MXD_PATH")
frames = arcpy.mapping.ListDataFrames(mxd)
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
#Sets the rotation angle of the dependant data frame to the data frame with the DDP index layer, assuming it is first in the TOC
frames[1].rotation = frames[0].rotation
arcpy.mapping.ExportToPDF(mxd, "DOC_NAME"+ str(pageNum) + '.pdf')
del mxd
... View more
02-13-2013
10:23 AM
|
0
|
0
|
843
|
POST
|
So I have a DDP mxd with two data frames, one with vector data and the other with imagery and a raster with transparency. I have set the imagery extent to the vector data frame, this works great except when my DDP has rotation angles, the the imagery dataframe does not rotate with the vector data frame. If ESRI could only get the PDF transparency export issue figured out....
... View more
02-13-2013
07:05 AM
|
0
|
0
|
843
|
POST
|
This bug has been logged by ESRI, search for the ID NIM071017. A work around we came up with was to create a temp dataset and create CAD formatted feature classes there. Once all the feature classes we need are in the temp dataset, we would set the workspace to that dataset, get a list of the feature classes, and use that list as the first input to the ExportCAD tool. Its still not ideal and I hate creating and saving intermediate data but it works. Hopefully that helps.
... View more
10-17-2011
07:49 AM
|
0
|
0
|
187
|
POST
|
Anyone have ideas on how to manage memory leaks from the ExportCAD_conversion tool? I am currently using the Delete_management tool to clear "in_memory" and also using del to delete the variable reference. I am looping through feature classes and appending them to a DWG with a seed file, I have overwriteoutput set to true as well. Each iteration of the loop increases the memory by about .7GB until my script crashes at around 3.5GB. Its not an input format issue because i standardize everything before it get passed to the tool and doesn't crash on a certain fc consistently. I have tried it in the ArcMap python window, pythonwin and pyscripter. After looking at the results tab when running the tool in the ArcMap python window, I notice that 2 export messages are listed stating; "Exporting *feature_class* to CAD" and "exporting to *CAD*.dwg" My thoughts are that the tool first exports the fc to "CAD" somehow in memory and I just not have been able to figure out how to clear it. Any ideas/help would be appreciated.
... View more
07-12-2011
11:45 AM
|
0
|
2
|
776
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|