<?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: Validate feature for ALL errors in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440260#M11961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabiano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there is.&amp;nbsp; Use the IValidation.ValidateSet() method instead.&amp;nbsp; It validates an entire Set object, built from an ISet interface where you can add individual objects to the set.&amp;nbsp; This example shows building a set using selected features in an Edit session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim pMySet As esriSystem.ISet
Set pMySet = New esriSystem.Set
Dim pEnumFeature As IEnumFeature
Set pEnumFeature = pEditor.EditSelection
pEnumFeature.Reset
For Count = 0 To pEditor.SelectionCount - 1
&amp;nbsp; Set pFeature = pEnumFeature.Next
&amp;nbsp; pMySet.Add pFeature
Next Count&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IValidation.ValidateSet() method returns an ISet object containing all of the invalid features that it found in that set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:42:11 GMT</pubDate>
    <dc:creator>ToddBlanchette</dc:creator>
    <dc:date>2021-12-11T19:42:11Z</dc:date>
    <item>
      <title>Validate feature for ALL errors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440259#M11960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i need to make a tool that validate all selectioned features and, for each, show ALL validation errors.&lt;/P&gt;&lt;P&gt;The IValidation.Validate() show only one error at a time.&lt;/P&gt;&lt;P&gt;There is any interface that allow a complete error analysis?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabiano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 10:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440259#M11960</guid>
      <dc:creator>FabianoFerrazza</dc:creator>
      <dc:date>2015-05-19T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Validate feature for ALL errors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440260#M11961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabiano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there is.&amp;nbsp; Use the IValidation.ValidateSet() method instead.&amp;nbsp; It validates an entire Set object, built from an ISet interface where you can add individual objects to the set.&amp;nbsp; This example shows building a set using selected features in an Edit session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim pMySet As esriSystem.ISet
Set pMySet = New esriSystem.Set
Dim pEnumFeature As IEnumFeature
Set pEnumFeature = pEditor.EditSelection
pEnumFeature.Reset
For Count = 0 To pEditor.SelectionCount - 1
&amp;nbsp; Set pFeature = pEnumFeature.Next
&amp;nbsp; pMySet.Add pFeature
Next Count&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IValidation.ValidateSet() method returns an ISet object containing all of the invalid features that it found in that set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440260#M11961</guid>
      <dc:creator>ToddBlanchette</dc:creator>
      <dc:date>2021-12-11T19:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validate feature for ALL errors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440261#M11962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Todd, bui probably I have not explained.&lt;/P&gt;&lt;P&gt;I need a tool that, FOR EACH FEATURE, &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;show ALL validation errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;For example, if a signe feature has both a domain error and a network rule error, I'd like to view both the errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Fabiano&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 09:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440261#M11962</guid>
      <dc:creator>FabianoFerrazza</dc:creator>
      <dc:date>2015-05-27T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validate feature for ALL errors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440262#M11963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabiano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've researched, it's not possible.&amp;nbsp; You have to fix one error before you can list the next.&amp;nbsp; Here is the quote from ESRI's online help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Validation is a short-circuiting process, meaning that the validate process stops if one of the checks fails. For example, if a feature is found to violate a connectivity rule, the validation of the feature stops, and any relationship rules will not be checked until the connectivity rule violation is corrected and the feature is validated again.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 16:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/validate-feature-for-all-errors/m-p/440262#M11963</guid>
      <dc:creator>ToddBlanchette</dc:creator>
      <dc:date>2015-05-27T16:42:04Z</dc:date>
    </item>
  </channel>
</rss>

