I was trying to set the environment variable XYResolution 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.
I am looking for a way to set this environment variable (global/default) through ArcGIS Pro SDk/C# code.
var args1 = Geoprocessing.MakeValueArray(....);
var env = Geoprocessing.MakeEnvironmentArray(overwriteoutput: true, XYResolution: "1 meters");
var t = await Geoprocessing.ExecuteToolAsync(tool1, args1,env);
Thanks for your help.