<?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: Get Query-string from Layer in mxd ? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134487#M3473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using any Tool from Toolbox in ArcMap, tool is executed only on selected records in the Layer, if any. Otherwise, the same is executed on all the records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 08:13:03 GMT</pubDate>
    <dc:creator>ThavitinaiduGulivindala</dc:creator>
    <dc:date>2010-09-30T08:13:03Z</dc:date>
    <item>
      <title>Get Query-string from Layer in mxd ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134483#M3469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone explain me how i can read an existing querydefinition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from a featurelayer ? i only figured out how to set it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 05:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134483#M3469</guid>
      <dc:creator>mariuskolleck</dc:creator>
      <dc:date>2010-09-30T05:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Query-string from Layer in mxd ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134484#M3470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, figured it out myself, wasn't that hard...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; If (TypeOf pLayer Is IFeatureLayer) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim lay As IFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim qu As String
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lay = CType(pLayer, IFeatureLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim def As IFeatureLayerDefinition = lay
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qu = def.DefinitionExpression
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(qu)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134484#M3470</guid>
      <dc:creator>mariuskolleck</dc:creator>
      <dc:date>2021-12-11T07:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Query-string from Layer in mxd ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134485#M3471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the below.&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#//0012000004v2000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0012000004v2000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001200000r1s000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001200000r1s000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 06:33:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134485#M3471</guid>
      <dc:creator>ThavitinaiduGulivindala</dc:creator>
      <dc:date>2010-09-30T06:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Query-string from Layer in mxd ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134486#M3472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks ! the example was pretty helpfull.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;one question more, is there a possibility to apply the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter on the featuretofeilgeodatabase conversion tool ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or how can i just convert those features which apply to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a query ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134486#M3472</guid>
      <dc:creator>mariuskolleck</dc:creator>
      <dc:date>2010-09-30T07:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get Query-string from Layer in mxd ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134487#M3473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using any Tool from Toolbox in ArcMap, tool is executed only on selected records in the Layer, if any. Otherwise, the same is executed on all the records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 08:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134487#M3473</guid>
      <dc:creator>ThavitinaiduGulivindala</dc:creator>
      <dc:date>2010-09-30T08:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Query-string from Layer in mxd ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134488#M3474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sry, i didn't mention i was using the .NET API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the toolbox tool FeaturetoFileGeodatabase via .NET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it copies all layers from the mxd, but unfortunately with all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;datasets, even those which are not used, because my sql query for &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this layer takes them out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is now, if there is a possibility to select those datasets which &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are ment to be copied, or do i have to copy all, and take out those, which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i don't want in the finished filegeodatabase ?!? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your patience !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 09:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-query-string-from-layer-in-mxd/m-p/134488#M3474</guid>
      <dc:creator>mariuskolleck</dc:creator>
      <dc:date>2010-09-30T09:02:55Z</dc:date>
    </item>
  </channel>
</rss>

