<?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: Import .LYRX file into ArcMap using ArcObjects add-in in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057612#M20317</link>
    <description>&lt;P&gt;Thank you, I will try that! The .NET framework version might be the hangup, but I'll give it a go.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 13:57:27 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-05-13T13:57:27Z</dc:date>
    <item>
      <title>Import .LYRX file into ArcMap using ArcObjects add-in</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057603#M20315</link>
      <description>&lt;P&gt;I am maintaining a legacy add-in (written in C#) for my organization that currently works by querying a database table for a layer name (by calling an API), and then imports the layer file from a network drive into ArcMap. The layer files are submitted to my office in .lyr format by users in other offices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are migrating to ArcGIS Pro 2.x soon, and will need to use .lyrx files. We have the add-in migrated to ArcGIS Pro SDK and the same library of .lyr files is referenced by both the ArcMap add-in and the ArcGIS Pro add-in, which works because .lyr files can be loaded into Pro.&lt;/P&gt;&lt;P&gt;However, some users still need ArcMap, and the ArcMap add-in cannot currently reference .lyrx files. This is a problem because .lyrx files are not backwards-compatible with ArcMap, and the users submitting layer files will not (theoretically) have access to ArcMap so they can't create .lyr files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tl;dr: I need an ArcObjects add-in to be able to pull .lyrx files into ArcMap and am unaware of a way to do that.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057603#M20315</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-13T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import .LYRX file into ArcMap using ArcObjects add-in</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057609#M20316</link>
      <description>&lt;P&gt;Last time I checked, you can add a reference to the ArcGIS.Core assembly from a 32bit project (e.g. an&amp;nbsp; arcmap add-in project). Not sure if it's compatible with the .NET framework version though.&lt;/P&gt;&lt;P&gt;You should then be able to deserialize the .lyrx into a CIMLayer.&amp;nbsp; After that you could write extension methods like .ToArcObjects() that would convert a CIMLayer to an ILayer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057609#M20316</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-05-13T13:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import .LYRX file into ArcMap using ArcObjects add-in</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057612#M20317</link>
      <description>&lt;P&gt;Thank you, I will try that! The .NET framework version might be the hangup, but I'll give it a go.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/import-lyrx-file-into-arcmap-using-arcobjects-add/m-p/1057612#M20317</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-13T13:57:27Z</dc:date>
    </item>
  </channel>
</rss>

