<?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: Search symbols does not return any style items in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150235#M7877</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have similar situation with color ramps month ago. It was problem with ArcGIS Pro project. Have you tried your code on new created ArcGIS Pro project?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 16:26:16 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-03-03T16:26:16Z</dc:date>
    <item>
      <title>Search symbols does not return any style items</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150102#M7874</link>
      <description>&lt;P&gt;I'm trying to find a Line Symbol in the project style items but the function returns an empty collection.&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/fcf72bfb6d03e7c05eeca12d57236418bf84e6bc/Map-Authoring/Renderer/SimpleRenderers.cs" target="_self"&gt;This is my reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;//Get all styles in the project&lt;BR /&gt;var styleProjectItem2D = Project.Current.GetItems&amp;lt;StyleProjectItem&amp;gt;().FirstOrDefault(s =&amp;gt; s.Name == "ArcGIS 2D");&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//Get a specific style in the project by name&lt;BR /&gt;var arrowLineSymbol = styleProjectItem2D.SearchSymbols(StyleItemType.LineSymbol, "Arrow Line 2 (Mid)")[0];&lt;/P&gt;&lt;P&gt;The 'Arrow Line 2 (Mid)' symbol cannot be found even though it is available in the ArcGIS Pro project style&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KarthikAditya_0-1646298381689.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35473i408B8F688C4AC5E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KarthikAditya_0-1646298381689.png" alt="KarthikAditya_0-1646298381689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 09:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150102#M7874</guid>
      <dc:creator>KarthikAditya</dc:creator>
      <dc:date>2022-03-03T09:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search symbols does not return any style items</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150235#M7877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have similar situation with color ramps month ago. It was problem with ArcGIS Pro project. Have you tried your code on new created ArcGIS Pro project?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150235#M7877</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-03-03T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search symbols does not return any style items</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150551#M7880</link>
      <description>&lt;P&gt;Thanks for the suggestion, running the code on another project found the symbols.&lt;/P&gt;&lt;P&gt;How to solve this problem in those projects where symbols are not found?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 04:27:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150551#M7880</guid>
      <dc:creator>KarthikAditya</dc:creator>
      <dc:date>2022-03-04T04:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search symbols does not return any style items</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150559#M7881</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can repair project manually. Project file is renamed zip file. You can extract it and modify damaged part.&lt;/P&gt;&lt;P&gt;More info in my own question here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/styleprojectitem-method-searchcolorramps-always/m-p/1141613#M7747" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/styleprojectitem-method-searchcolorramps-always/m-p/1141613#M7747&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 06:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/search-symbols-does-not-return-any-style-items/m-p/1150559#M7881</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-03-04T06:14:30Z</dc:date>
    </item>
  </channel>
</rss>

