<?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: Using Inspector to modify an attribute of multiple features but not with the same value in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-inspector-to-modify-an-attribute-of-multiple/m-p/1652827#M13152</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your code will modify only last feature. To modify all features code must look like:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            EditOperation editOperation = new() { Name = editOperationName, ProgressMessage = "Modifying features ...", ShowProgressor = true };
            Inspector inspector = new();

            using (RowCursor cursor = featureClass.Search(new() { WhereClause = "&amp;lt;my whereclause&amp;gt;" }))
            {

                if (cursor.MoveNext())
                {
                    Row row = cursor.Current;
                    inspector.Load(row);
                    inspector["myattribute"] = &amp;lt; any different value&amp;gt;;
                    editOperation.Modify(inspector);
                }
            }

            _ = editOperation.Execute();&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 24 Sep 2025 15:30:00 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-09-24T15:30:00Z</dc:date>
    <item>
      <title>Using Inspector to modify an attribute of multiple features but not with the same value</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-inspector-to-modify-an-attribute-of-multiple/m-p/1652790#M13151</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can I use the Inspector to modify an attribute of multiple features but not with the same value? For me it is not clear in the documentation nor in the samples.&lt;/P&gt;&lt;P&gt;Will this work, or do I have to use another approach?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;EditOperation editOperation = new() { Name = editOperationName, ProgressMessage = "Modifying features ...", ShowProgressor = true };
Inspector inspector = new();

using RowCursor cursor = featureClass.Search(new() { WhereClause = "&amp;lt;my whereclause&amp;gt;" });
if (cursor.MoveNext())
{
	Row row = cursor.Current;
	inspector.Load(row);
	inspector["myattribute"] = &amp;lt;any different value&amp;gt;;
}

editOperation.Modify(inspector);
_ = editOperation.Execute();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 13:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-inspector-to-modify-an-attribute-of-multiple/m-p/1652790#M13151</guid>
      <dc:creator>PieterLinks</dc:creator>
      <dc:date>2025-09-24T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Inspector to modify an attribute of multiple features but not with the same value</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-inspector-to-modify-an-attribute-of-multiple/m-p/1652827#M13152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your code will modify only last feature. To modify all features code must look like:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            EditOperation editOperation = new() { Name = editOperationName, ProgressMessage = "Modifying features ...", ShowProgressor = true };
            Inspector inspector = new();

            using (RowCursor cursor = featureClass.Search(new() { WhereClause = "&amp;lt;my whereclause&amp;gt;" }))
            {

                if (cursor.MoveNext())
                {
                    Row row = cursor.Current;
                    inspector.Load(row);
                    inspector["myattribute"] = &amp;lt; any different value&amp;gt;;
                    editOperation.Modify(inspector);
                }
            }

            _ = editOperation.Execute();&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Sep 2025 15:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-inspector-to-modify-an-attribute-of-multiple/m-p/1652827#M13152</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-09-24T15:30:00Z</dc:date>
    </item>
  </channel>
</rss>

