<?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 Removing shapefile .lock files (ed, rd, and sr) in ArcGIS Pro in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/removing-shapefile-lock-files-ed-rd-and-sr-in/m-p/816599#M2610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I am migrating an application from ArcObjects that allows a user to define a polygon which is then written to a shapefile. This process can happen numerous times in a session, requiring the shapefile to be deleted and then re-created.&amp;nbsp; In the ArcObjects version of the application, I am able to remove the shape file and create another. I use the IFeatureWorkspaceManage interface with the DeleteByName passing in the DatasetName and am able to delete and re-create the shapefile as necessary.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;(&lt;SPAN style="background: white; color: black;"&gt;pWorkspaceManage.DeleteByName(pDatasetname);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;In the Pro version I remove the shapefile from the Map and then try to remove the shapefile files but am unable due to the .lock files.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I need to know the equivalent mechanism in ArcGIS Pro sdk to allow for same shapefile name creation and removal in an ArcGIS Pro session. Any assistance would be appreciated.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2017 17:29:13 GMT</pubDate>
    <dc:creator>ThomasCox</dc:creator>
    <dc:date>2017-01-06T17:29:13Z</dc:date>
    <item>
      <title>Removing shapefile .lock files (ed, rd, and sr) in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/removing-shapefile-lock-files-ed-rd-and-sr-in/m-p/816599#M2610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I am migrating an application from ArcObjects that allows a user to define a polygon which is then written to a shapefile. This process can happen numerous times in a session, requiring the shapefile to be deleted and then re-created.&amp;nbsp; In the ArcObjects version of the application, I am able to remove the shape file and create another. I use the IFeatureWorkspaceManage interface with the DeleteByName passing in the DatasetName and am able to delete and re-create the shapefile as necessary.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;(&lt;SPAN style="background: white; color: black;"&gt;pWorkspaceManage.DeleteByName(pDatasetname);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;In the Pro version I remove the shapefile from the Map and then try to remove the shapefile files but am unable due to the .lock files.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I need to know the equivalent mechanism in ArcGIS Pro sdk to allow for same shapefile name creation and removal in an ArcGIS Pro session. Any assistance would be appreciated.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 17:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/removing-shapefile-lock-files-ed-rd-and-sr-in/m-p/816599#M2610</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-01-06T17:29:13Z</dc:date>
    </item>
  </channel>
</rss>

