<?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 set XYResolution environment variable in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-xyresolution-environment-variable/m-p/1368331#M10986</link>
    <description>&lt;P&gt;I was trying to set the environment variable &lt;EM&gt;XYResolution&lt;/EM&gt; in the environments while running a geoprocessing tool. This XYResolution variable does not appear in the environments if I open the tool from toolbox in arcgis pro, but the variable is impacting the output when I set it manually from the ribbon and that is the expected output of the analysis.&lt;BR /&gt;&lt;BR /&gt;I am looking for a way to set this environment variable (global/default) through ArcGIS Pro SDk/C# code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; args1 = Geoprocessing.MakeValueArray(....);
&lt;SPAN&gt;var&lt;/SPAN&gt; env = Geoprocessing.MakeEnvironmentArray(overwriteoutput: &lt;SPAN&gt;true, XYResolution: "1 meters"&lt;/SPAN&gt;);          
&lt;SPAN&gt;var&lt;/SPAN&gt; t = &lt;SPAN&gt;await&lt;/SPAN&gt; Geoprocessing.ExecuteToolAsync(tool1, args1,env);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 14:46:12 GMT</pubDate>
    <dc:creator>sai_phaneendra</dc:creator>
    <dc:date>2024-01-10T14:46:12Z</dc:date>
    <item>
      <title>set XYResolution environment variable</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-xyresolution-environment-variable/m-p/1368331#M10986</link>
      <description>&lt;P&gt;I was trying to set the environment variable &lt;EM&gt;XYResolution&lt;/EM&gt; in the environments while running a geoprocessing tool. This XYResolution variable does not appear in the environments if I open the tool from toolbox in arcgis pro, but the variable is impacting the output when I set it manually from the ribbon and that is the expected output of the analysis.&lt;BR /&gt;&lt;BR /&gt;I am looking for a way to set this environment variable (global/default) through ArcGIS Pro SDk/C# code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; args1 = Geoprocessing.MakeValueArray(....);
&lt;SPAN&gt;var&lt;/SPAN&gt; env = Geoprocessing.MakeEnvironmentArray(overwriteoutput: &lt;SPAN&gt;true, XYResolution: "1 meters"&lt;/SPAN&gt;);          
&lt;SPAN&gt;var&lt;/SPAN&gt; t = &lt;SPAN&gt;await&lt;/SPAN&gt; Geoprocessing.ExecuteToolAsync(tool1, args1,env);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-xyresolution-environment-variable/m-p/1368331#M10986</guid>
      <dc:creator>sai_phaneendra</dc:creator>
      <dc:date>2024-01-10T14:46:12Z</dc:date>
    </item>
  </channel>
</rss>

