<?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: make a feature layer and change his color in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529243#M41448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I creates a Polygon with geometry and safe him in this GDB:&lt;/P&gt;&lt;P&gt;C:\ArcGIS\Projects\Geologie\local_scene.gdb\aussrtm_Seligenstadt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than I want make the feature class "aussrtm_Seligenstadt" to a feature Layer and change his Color. The Source Code works he have no errors or faults.&lt;/P&gt;&lt;P&gt;I think the problem: he creates the layer in the map after the tool is finished,&lt;/P&gt;&lt;P&gt;This dosn't&amp;nbsp; &lt;EM&gt;lyr.name == "test"&lt;/EM&gt; work because the layer is in the map only after the tool is finished not during the tool is running&lt;/P&gt;&lt;P&gt;He creates the layer in the tool and insert not until the end of tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 09:24:10 GMT</pubDate>
    <dc:creator>JohannesRuban</dc:creator>
    <dc:date>2017-07-27T09:24:10Z</dc:date>
    <item>
      <title>make a feature layer and change his color</title>
      <link>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529241#M41446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i have trouble with ArcGIS Pro and arcpy.&lt;/P&gt;&lt;P&gt;I want to make a feature layer, change his color and finally add him to the current Map&lt;/P&gt;&lt;P&gt;My Problem is, this Syntax work in Python Window in ArcGIS Pro, but not in my selfmade Tool.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Can someone help me&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"C:\ArcGIS\Projects\Geologie\local_scene.gdb\aussrtm_Seligenstadt"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"test"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; m &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lyr &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"test"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sym &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;symbology
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sym&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;renderer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;symbol&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'RGB'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;255&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;symbology &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sym‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529241#M41446</guid>
      <dc:creator>JohannesRuban</dc:creator>
      <dc:date>2021-12-11T23:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: make a feature layer and change his color</title>
      <link>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529242#M41447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show how you were trying to implement this code&amp;nbsp;in your tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 21:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529242#M41447</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-07-26T21:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: make a feature layer and change his color</title>
      <link>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529243#M41448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I creates a Polygon with geometry and safe him in this GDB:&lt;/P&gt;&lt;P&gt;C:\ArcGIS\Projects\Geologie\local_scene.gdb\aussrtm_Seligenstadt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than I want make the feature class "aussrtm_Seligenstadt" to a feature Layer and change his Color. The Source Code works he have no errors or faults.&lt;/P&gt;&lt;P&gt;I think the problem: he creates the layer in the map after the tool is finished,&lt;/P&gt;&lt;P&gt;This dosn't&amp;nbsp; &lt;EM&gt;lyr.name == "test"&lt;/EM&gt; work because the layer is in the map only after the tool is finished not during the tool is running&lt;/P&gt;&lt;P&gt;He creates the layer in the tool and insert not until the end of tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 09:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529243#M41448</guid>
      <dc:creator>JohannesRuban</dc:creator>
      <dc:date>2017-07-27T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: make a feature layer and change his color</title>
      <link>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529244#M41449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/JohannesRuban"&gt;JohannesRuban&lt;/A&gt;&amp;nbsp;- I'm testing this out with Pro 2.0 right now. I see that this code works in the Python window and with a stand alone script. Looking into what happens when implemented as a script tool. I'll follow up with what I find.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 16:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529244#M41449</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2017-07-27T16:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: make a feature layer and change his color</title>
      <link>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529245#M41450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/241403"&gt;Johannes Ruban&lt;/A&gt;‌ - I'm not sure how you implemented the script tool, but I've attached a zipped Pro package with 2 different script tools implementing&amp;nbsp;a symbology change on a layer. &amp;nbsp;Worked with some colleagues and we saw they same that the implementation in your example didn't work. The script tool labeled Layer Color Changer2 in the project did work at Pro 2.0. Let me know if you see the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 18:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-a-feature-layer-and-change-his-color/m-p/529245#M41450</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2017-07-31T18:11:56Z</dc:date>
    </item>
  </channel>
</rss>

