<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set parameter on this export map in Python script in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-set-parameter-on-this-export-map-in-python/m-p/1036995#M38561</link>
    <description>&lt;P&gt;I want to create a python script that takes a map as an image. I uploaded it to the service, but I tried uploading it to the service, but it didn't raise the parameter&lt;/P&gt;&lt;P&gt;How should this code be fixed?&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;BR /&gt;import ConversionUtils&lt;BR /&gt;&lt;BR /&gt;msgWorkspace = ConversionUtils.gp.GetIDMessage(86127)&lt;BR /&gt;msgSuccess = ConversionUtils.gp.GetIDMessage(86128)&lt;BR /&gt;msgFail = ConversionUtils.gp.GetIDMessage(86129)&lt;BR /&gt;msgConverting = ConversionUtils.gp.GetIDMessage(86130)&lt;BR /&gt;&lt;BR /&gt;outWorkspace = ConversionUtils.gp.GetParameterAsText(0)&lt;BR /&gt;&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;BR /&gt;mv = aprx.activeView&lt;BR /&gt;&lt;BR /&gt;ext = mv.camera.getExtent()&lt;BR /&gt;mv.panToExtent(ext)&lt;BR /&gt;mv.zoomToAllLayers()&lt;BR /&gt;mv.camera.setExtent(ext)&lt;BR /&gt;Output_File = os.path.join(outWorkspace, 'ActiveMapView.png')&lt;BR /&gt;mv.exportToPNG(Output_File, width=1000, height=1000)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 05:03:13 GMT</pubDate>
    <dc:creator>cinnaaaoo</dc:creator>
    <dc:date>2021-03-16T05:03:13Z</dc:date>
    <item>
      <title>How to set parameter on this export map in Python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-set-parameter-on-this-export-map-in-python/m-p/1036995#M38561</link>
      <description>&lt;P&gt;I want to create a python script that takes a map as an image. I uploaded it to the service, but I tried uploading it to the service, but it didn't raise the parameter&lt;/P&gt;&lt;P&gt;How should this code be fixed?&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;BR /&gt;import ConversionUtils&lt;BR /&gt;&lt;BR /&gt;msgWorkspace = ConversionUtils.gp.GetIDMessage(86127)&lt;BR /&gt;msgSuccess = ConversionUtils.gp.GetIDMessage(86128)&lt;BR /&gt;msgFail = ConversionUtils.gp.GetIDMessage(86129)&lt;BR /&gt;msgConverting = ConversionUtils.gp.GetIDMessage(86130)&lt;BR /&gt;&lt;BR /&gt;outWorkspace = ConversionUtils.gp.GetParameterAsText(0)&lt;BR /&gt;&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;BR /&gt;mv = aprx.activeView&lt;BR /&gt;&lt;BR /&gt;ext = mv.camera.getExtent()&lt;BR /&gt;mv.panToExtent(ext)&lt;BR /&gt;mv.zoomToAllLayers()&lt;BR /&gt;mv.camera.setExtent(ext)&lt;BR /&gt;Output_File = os.path.join(outWorkspace, 'ActiveMapView.png')&lt;BR /&gt;mv.exportToPNG(Output_File, width=1000, height=1000)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 05:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-set-parameter-on-this-export-map-in-python/m-p/1036995#M38561</guid>
      <dc:creator>cinnaaaoo</dc:creator>
      <dc:date>2021-03-16T05:03:13Z</dc:date>
    </item>
  </channel>
</rss>

