<?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 GraphicsLayer's AddElement extension method not recognized in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphicslayer-s-addelement-extension-method-not/m-p/867233#M4994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am&amp;nbsp;trying to add a graphics element to a graphics layer using Pro SDK 2.6. For some reason the AddElement method and the other extension methods that come from GraphicsLayerExtensions are not recognized. Visual Studio reports the following:&amp;nbsp;&lt;EM&gt;'GraphicsLayer' does not contain a definition for 'AddElement' and no accessible extension method 'AddElement' accepting a first argument of type 'GraphicsLayer' could be found (are you missing a using directive or an assembly reference?).&amp;nbsp;&lt;/EM&gt;Is there a reference that needs to be added? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GraphicsLayer graphicsLayer = GetGraphicsLayer();&lt;/P&gt;&lt;P&gt;CIMLineGraphic lineGraphic = new CIMLineGraphic() { Symbol = lineSymbol, Line = polyline };&lt;BR /&gt; graphicsLayer.&lt;STRONG&gt;AddElement&lt;/STRONG&gt;(lineGraphic);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2020 19:30:18 GMT</pubDate>
    <dc:creator>AlexZlotin1</dc:creator>
    <dc:date>2020-09-17T19:30:18Z</dc:date>
    <item>
      <title>GraphicsLayer's AddElement extension method not recognized</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphicslayer-s-addelement-extension-method-not/m-p/867233#M4994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am&amp;nbsp;trying to add a graphics element to a graphics layer using Pro SDK 2.6. For some reason the AddElement method and the other extension methods that come from GraphicsLayerExtensions are not recognized. Visual Studio reports the following:&amp;nbsp;&lt;EM&gt;'GraphicsLayer' does not contain a definition for 'AddElement' and no accessible extension method 'AddElement' accepting a first argument of type 'GraphicsLayer' could be found (are you missing a using directive or an assembly reference?).&amp;nbsp;&lt;/EM&gt;Is there a reference that needs to be added? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GraphicsLayer graphicsLayer = GetGraphicsLayer();&lt;/P&gt;&lt;P&gt;CIMLineGraphic lineGraphic = new CIMLineGraphic() { Symbol = lineSymbol, Line = polyline };&lt;BR /&gt; graphicsLayer.&lt;STRONG&gt;AddElement&lt;/STRONG&gt;(lineGraphic);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphicslayer-s-addelement-extension-method-not/m-p/867233#M4994</guid>
      <dc:creator>AlexZlotin1</dc:creator>
      <dc:date>2020-09-17T19:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer's AddElement extension method not recognized</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphicslayer-s-addelement-extension-method-not/m-p/867234#M4995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer with colleague's help. The missing reference was ArcGIS.Desktop.Layouts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphicslayer-s-addelement-extension-method-not/m-p/867234#M4995</guid>
      <dc:creator>AlexZlotin1</dc:creator>
      <dc:date>2020-09-17T21:01:34Z</dc:date>
    </item>
  </channel>
</rss>

