mxDoc = arcpy.mapping.MapDocument(r'path\to\mxd') setVisibleLayers(mxDoc) def setVisibleLayers(mxDoc): dataFrame = arcpy.mapping.ListDataFrames(mxDoc)[0] #code hangs here
Job ID: je327da53fea846d184109dd21edd85d4Job Status: esriJobFailedJob Messages: esriJobMessageTypeInformative: Submitted. esriJobMessageTypeInformative: Executing... esriJobMessageTypeInformative: Executing (MapPrint): MapPrint Landscape8x11 -12457810 4955286 -12457587 4955538 0 # "a title" "a subtitle" "some comments" pdf A1234 esriJobMessageTypeInformative: Start Time: Wed May 18 08:38:41 2011 esriJobMessageTypeInformative: Running script MapPrint... esriJobMessageTypeInformative: Setting Visible Layers esriJobMessageTypeError: Failed. esriJobMessageTypeError: Execution of job je327da53fea846d184109dd21edd85d4 failed because of crash or termination of the server object. esriJobMessageTypeInformative: Setting Extent esriJobMessageTypeInformative: Setting Layout Text esriJobMessageTypeInformative: Adding basemap esriJobMessageTypeInformative: Exporting Map esriJobMessageTypeInformative: Exported E:\arcgisserver\arcgisoutput\PrintableMap\A1234_130573342519.PDF esriJobMessageTypeInformative: Completed script MapPrint... esriJobMessageTypeInformative: Succeeded at Wed May 18 08:43:51 2011 (Elapsed Time: 5 minutes 10 seconds)
I'd love to see the code!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.