<?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 count the rows from layer have &amp;amp;quot;Page Definition Query&amp;amp;quot; activated in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32850#M867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how i can calculate the rows from a layer have "Page Definition Query" activated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i need the total of rows when the "Page Definition Query" is active and not the real total from the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i try with this code but dont work like i want, because this get all record the layer have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pdoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pmap As IMap
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfi As IFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfc As IFeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pdoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pmap = pdoc.activeView.FocusMap
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pfi = pmap.Layer(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pfc = pfi.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox (" features: " &amp;amp; pfc.FeatureCount(Nothing))
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 17:30:59 GMT</pubDate>
    <dc:creator>DavixKm</dc:creator>
    <dc:date>2012-12-05T17:30:59Z</dc:date>
    <item>
      <title>count the rows from layer have &amp;quot;Page Definition Query&amp;quot; activated</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32850#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how i can calculate the rows from a layer have "Page Definition Query" activated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i need the total of rows when the "Page Definition Query" is active and not the real total from the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i try with this code but dont work like i want, because this get all record the layer have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pdoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pmap As IMap
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfi As IFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfc As IFeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pdoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pmap = pdoc.activeView.FocusMap
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pfi = pmap.Layer(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pfc = pfi.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox (" features: " &amp;amp; pfc.FeatureCount(Nothing))
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 17:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32850#M867</guid>
      <dc:creator>DavixKm</dc:creator>
      <dc:date>2012-12-05T17:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: count the rows from layer have "Page Definition Query" activated</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32851#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;moving to ArcObjects forum.&amp;nbsp; -jb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 16:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32851#M868</guid>
      <dc:creator>JimBarry</dc:creator>
      <dc:date>2012-12-21T16:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: count the rows from layer have "Page Definition Query" activated</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32852#M869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't used data driven pages but assuming the definition query works the same, you will want to search using IFeatureLayer instead of IFeatureClass:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Search_Method/0012000004w9000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Search_Method/0012000004w9000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;how i can calculate the rows from a layer have "Page Definition Query" activated?&lt;BR /&gt;i need the total of rows when the "Page Definition Query" is active and not the real total from the layer.&lt;BR /&gt;&lt;BR /&gt;i try with this code but dont work like i want, because this get all record the layer have.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pdoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pmap As IMap
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfi As IFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pfc As IFeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pdoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pmap = pdoc.activeView.FocusMap
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pfi = pmap.Layer(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pfc = pfi.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox (" features: " &amp;amp; pfc.FeatureCount(Nothing))
&lt;/PRE&gt;&lt;BR /&gt;cheers.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/count-the-rows-from-layer-have-amp-quot-page/m-p/32852#M869</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2021-12-10T21:17:58Z</dc:date>
    </item>
  </channel>
</rss>

