<?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: GxDialog doesn't always ask about replacing object in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97918#M2592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I change it to GxFilterShapefiles, I'll get the replacement warning message. However, in another application using the same code (with GxFilterFeatureClasses), I get the warning for both shapefiles and feature classes in geodatabases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 18:39:17 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2012-08-07T18:39:17Z</dc:date>
    <item>
      <title>GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97916#M2590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my code, I'm using the following code to save a feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Dim pFCFilter As New ESRI.ArcGIS.Catalog.GxFilterFeatureClasses Dim pGxDialog As New ESRI.ArcGIS.CatalogUI.GxDialog&amp;nbsp; pGxDialog.Title = "Save feature class" pGxDialog.Name = "" pGxDialog.ObjectFilter = pFCFilter&amp;nbsp; If Not pGxDialog.DoModalSave(My.ArcMap.Application.hWnd) Then Exit Sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I select a feature class that already exists in a file or personal geodatabase, I'll get the expected "The object named "X" already exists. Do you wish to replace it?" However, when I select a shapefile that already exists, I don't get that message. Why would I get this inconsistent behavior?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 18:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97916#M2590</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-08-07T18:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97917#M2591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would expect the GxFilterFeatureClasses class to filter any type of feature class but ESRI probably had geodatabase feature classes in mind when they implemented it.&amp;nbsp; It probably isn't appending the .shp extension onto the class name in order to check for the existing feature class.&amp;nbsp; Do you get the correct behavior when you use the GxFilterShapefiles class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 18:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97917#M2591</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-08-07T18:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97918#M2592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I change it to GxFilterShapefiles, I'll get the replacement warning message. However, in another application using the same code (with GxFilterFeatureClasses), I get the warning for both shapefiles and feature classes in geodatabases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 18:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97918#M2592</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-08-07T18:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97919#M2593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure why it would work in one app but not another.&amp;nbsp; Just to rule out the obvious, have you double-checked to make sure it's the exact same code in both apps?&amp;nbsp; Are you trying to save to the same directory on the same computer with both apps and getting a warning from one but not the other?&amp;nbsp; It might be a permissions issue, and OS setting or something similar if you're running the two apps on different systems or as different users.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 18:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97919#M2593</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-08-07T18:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97920#M2594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first thing I did was check whether the code in the two applications was the same. And I'm testing them out on the same workspaces, so I am stumped as to why they're performing differently.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 19:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97920#M2594</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-08-07T19:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97921#M2595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you specify the shapefile name are you typing it in or selecting the existing object displayed in the dialog?&amp;nbsp; Do you get different behavior depending on which way you do it?&amp;nbsp; Also, check the IGxDialog.ReplacingObject property to see if it's being set correctly.&amp;nbsp; If it is, then you can work around the problem by implementing your own warning message.&amp;nbsp; I really can't see why it work in one app but not the other either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 19:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97921#M2595</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-08-07T19:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97922#M2596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting this when I select the object via mouse. But typing in the name with or without ".shp" gives me the same result. I've checked the ReplacingObject property and it's not being set to true. It gets set to true when I select an existing feature class in a geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 19:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97922#M2596</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-08-07T19:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: GxDialog doesn't always ask about replacing object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97923#M2597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This had been submitted as a bug: #NIM083649&amp;nbsp; IGxDialog:: DoModalSave() with GxFilterFeatureClasses does not always ask user for permission to overwrite when an existing shapefile is chosen. This issue occurs in both 10.0 and 10.1. Esri Support also said that "GxFilterFeatureClasses should work for featureClasses in the mdb and fdb, as well as the shapefiles." &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still don't know what that code works properly in another application. In subsequent testing, I found that other filters, such as&amp;nbsp; GxFilterPolygonFeatureClasses or GxFilterPointFeatureClasses, also don't ask for permission to overwrite files for shapefiles or geodatabase feature classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 11:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxdialog-doesn-t-always-ask-about-replacing-object/m-p/97923#M2597</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-08-10T11:58:32Z</dc:date>
    </item>
  </channel>
</rss>

