<?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: How can I find out if the layer IDs are fixed in mxd through ArcObjects? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-find-out-if-the-layer-ids-are-fixed-in/m-p/336151#M8803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rafael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever find a solution for this question? I'm currently struggling through the API documentation to find any a crumble of the mentioned information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2018 07:11:24 GMT</pubDate>
    <dc:creator>MichaelWidmer</dc:creator>
    <dc:date>2018-11-08T07:11:24Z</dc:date>
    <item>
      <title>How can I find out if the layer IDs are fixed in mxd through ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-find-out-if-the-layer-ids-are-fixed-in/m-p/336150#M8802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know how can I find out if the layer IDs are fixed in mxd through ArcObjects? I usually use the code below to find the layer ids in mxd:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IMapDocument mapDocument = new MapDocumentClass(); &lt;BR /&gt;mapDocument.Open("C:\\Temp\\MyProject.mxd"); &lt;BR /&gt;IMap b = mapDocument.get_Map(0); &lt;BR /&gt;ILayerExtensions c = b.get_Layer(0) as ILayerExtensions; &lt;BR /&gt;IServerLayerExtension g = c.get_Extension(0) as IServerLayerExtension; &lt;BR /&gt; &lt;BR /&gt;IPropertySet psN = new PropertySet(); &lt;BR /&gt;psN.GetProperty("ServiceLayerID");&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;But when the ids are not fixed the returned Layer ID is wrong, because it follows the order of the layers included in the mxd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By fixed ids i mean the configuration of Data Frame Properties General tab, when you check the box "Allow assignement of unique numeric IDs for map service publishing"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 13:40:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-find-out-if-the-layer-ids-are-fixed-in/m-p/336150#M8802</guid>
      <dc:creator>RafaelDetoni</dc:creator>
      <dc:date>2017-03-02T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find out if the layer IDs are fixed in mxd through ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-find-out-if-the-layer-ids-are-fixed-in/m-p/336151#M8803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rafael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever find a solution for this question? I'm currently struggling through the API documentation to find any a crumble of the mentioned information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 07:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-can-i-find-out-if-the-layer-ids-are-fixed-in/m-p/336151#M8803</guid>
      <dc:creator>MichaelWidmer</dc:creator>
      <dc:date>2018-11-08T07:11:24Z</dc:date>
    </item>
  </channel>
</rss>

