<?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 Re: MemoryConnectionProperties custom name vs. ExecuteTool in memory in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1197298#M8525</link>
    <description>&lt;P&gt;Any intention to allow it to work custom named instances?&lt;/P&gt;&lt;P&gt;it is much easier to create a temp named instance than to manage create and destroy memory instances&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 11:35:12 GMT</pubDate>
    <dc:creator>dkuida</dc:creator>
    <dc:date>2022-07-29T11:35:12Z</dc:date>
    <item>
      <title>MemoryConnectionProperties custom name vs. ExecuteTool in memory</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1099272#M7142</link>
      <description>&lt;P&gt;I am trying to get a memory geodatabase with custom name to work with Geo processing tools (executed in codebehind).&lt;/P&gt;&lt;P&gt;So, I have created a `MemoryConnectionProperties` object as follow&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;MemoryConnectionProperties _memoryConnectionProperties = new MemoryConnectionProperties("MyCustomName");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yet I could not find out how to access it using `ExecuteToolAsync`?&lt;/P&gt;&lt;P&gt;Usually for memory I have used the following&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var parameters = Geoprocessing.MakeValueArray("memory\\" + _targetFeatureClass.GetName(), shapeFileOutputDir, shapeFileOutputName);
var result = await Geoprocessing.ExecuteToolAsync("FeatureClassToFeatureClass", parameters, null, null, null, GPExecuteToolFlags.None);&lt;/LI-CODE&gt;&lt;P&gt;Which is fine with the default memory.&lt;/P&gt;&lt;P&gt;Since I would want to isolate several "tasks" the idea came up to use a custom memory name. But I could not find out how to define the memory location (with its custom name).&lt;/P&gt;&lt;P&gt;What I have tried&amp;nbsp;&lt;STRONG&gt;without success&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// does not work when executing "FeatureToFeatureClass" tool
var parameters = Geoprocessing.MakeValueArray("memory\\MyCustomName\\" + _targetFeatureClass.GetName(), shapeFileOutputDir, shapeFileOutputName);
// also does not work when executing "FeatureToFeatureClass" tool
var parameters = Geoprocessing.MakeValueArray("MyCustomName\\" + _targetFeatureClass.GetName(), shapeFileOutputDir, shapeFileOutputName);&lt;/LI-CODE&gt;&lt;P&gt;Any ideas how to solve it?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 06:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1099272#M7142</guid>
      <dc:creator>ole1986</dc:creator>
      <dc:date>2021-09-17T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: MemoryConnectionProperties custom name vs. ExecuteTool in memory</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1099440#M7143</link>
      <description>&lt;P&gt;Sorry, geoprocessing can only access the memory&amp;nbsp;geodatabase called "memory." &amp;nbsp;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 16:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1099440#M7143</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2021-09-17T16:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: MemoryConnectionProperties custom name vs. ExecuteTool in memory</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1197298#M8525</link>
      <description>&lt;P&gt;Any intention to allow it to work custom named instances?&lt;/P&gt;&lt;P&gt;it is much easier to create a temp named instance than to manage create and destroy memory instances&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 11:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1197298#M8525</guid>
      <dc:creator>dkuida</dc:creator>
      <dc:date>2022-07-29T11:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: MemoryConnectionProperties custom name vs. ExecuteTool in memory</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1197565#M8531</link>
      <description>&lt;P&gt;While I don't work on the&amp;nbsp;geoprocessing team, I have not heard of any plans.&lt;/P&gt;&lt;P&gt;There really shouldn't be any problem working with the default ("memory") memory geodatabase. If you're concerned about memory usage, you could always delete the tables that you have created when you are finished with them.&lt;/P&gt;&lt;P&gt;Creation is a bit tricky at the moment, because the code to do so is different depending on whether or not you have run a&amp;nbsp;geoprocessing tool using "memory" already. &amp;nbsp;Here's the workaround we shared at DevSummit:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Geodatabase geodatabase;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; geodatabase = new Geodatabase(new &lt;/SPAN&gt;&lt;SPAN&gt;MemoryConnectionProperties&lt;/SPAN&gt;&lt;SPAN&gt;());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;catch {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; geodatabase = &lt;/SPAN&gt;&lt;SPAN&gt;SchemaBuilder.CreateGeodatabase&lt;/SPAN&gt;&lt;SPAN&gt;(new&lt;/SPAN&gt;&lt;SPAN&gt;MemoryConnectionProperties&lt;/SPAN&gt;&lt;SPAN&gt;());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;(We're fixing this at 3.1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 18:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/memoryconnectionproperties-custom-name-vs/m-p/1197565#M8531</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-07-29T18:52:12Z</dc:date>
    </item>
  </channel>
</rss>

