<?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 2020 Tree Loader Change Question in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721965#M9470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just downloaded the CityEngine 2020 and was giving it the paces.&amp;nbsp; &amp;nbsp;One thing I noticed is that when I updated the ESRI library including the vegetation rules,&amp;nbsp; is that that the new tree loader is run differently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Order(1) @Enum(valuesAttr=_nameEnumValues)
attr Name 		  = "Orange Tree" ‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the old one had all the trees listed under @Range:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Order(1) @Range("Alder Buckthorn","Amazon Sword Plant",...,...,...)
attr Name 				= "Orange Tree" ‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From reading the notes in the new CGA version, I understand that the change was done for file lookup speed/performance, and a shorter code to boot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; some of the rules that I created using Plant.Loader.Generate now are slightly less flexible.&amp;nbsp; When I&amp;nbsp;look at the&amp;nbsp;Plant.Loader&amp;nbsp;in the inspector tab, under the Plant.Loader selector attributes, I only see the current tree species and none of the other trees.&amp;nbsp; &amp;nbsp;I figured out that if I parameterize the tree name when I call into my code:&amp;nbsp; &amp;nbsp;e.g.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Plant.Loader.Generate("Red Hickory")&amp;nbsp; -&amp;nbsp; I can change it.&amp;nbsp; &amp;nbsp;But I don't know ~100 tree species by memory so this is a little inconvenient when I am just trying to get the best "look".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Picture of what is happening in new Plant_Loader cga when called into my other codes (only Orange Tree, no others):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/496124_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Also, I don't quite&amp;nbsp;understand what is happening now, maybe there is some new documentation&amp;nbsp;on this?&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The new code also has a hidden attribute:&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;@Hidden
attr _nameEnumValues = _getNameEnumValues

‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;And I am getting a yellow caution error from this:&amp;nbsp; "unused attribute_ str array _nameEnumValues()", which seems to drive a bunch of others warnings.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;How do I fix this?&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 06:52:45 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T06:52:45Z</dc:date>
    <item>
      <title>2020 Tree Loader Change Question</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721965#M9470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just downloaded the CityEngine 2020 and was giving it the paces.&amp;nbsp; &amp;nbsp;One thing I noticed is that when I updated the ESRI library including the vegetation rules,&amp;nbsp; is that that the new tree loader is run differently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Order(1) @Enum(valuesAttr=_nameEnumValues)
attr Name 		  = "Orange Tree" ‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the old one had all the trees listed under @Range:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Order(1) @Range("Alder Buckthorn","Amazon Sword Plant",...,...,...)
attr Name 				= "Orange Tree" ‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From reading the notes in the new CGA version, I understand that the change was done for file lookup speed/performance, and a shorter code to boot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; some of the rules that I created using Plant.Loader.Generate now are slightly less flexible.&amp;nbsp; When I&amp;nbsp;look at the&amp;nbsp;Plant.Loader&amp;nbsp;in the inspector tab, under the Plant.Loader selector attributes, I only see the current tree species and none of the other trees.&amp;nbsp; &amp;nbsp;I figured out that if I parameterize the tree name when I call into my code:&amp;nbsp; &amp;nbsp;e.g.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Plant.Loader.Generate("Red Hickory")&amp;nbsp; -&amp;nbsp; I can change it.&amp;nbsp; &amp;nbsp;But I don't know ~100 tree species by memory so this is a little inconvenient when I am just trying to get the best "look".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Picture of what is happening in new Plant_Loader cga when called into my other codes (only Orange Tree, no others):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/496124_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Also, I don't quite&amp;nbsp;understand what is happening now, maybe there is some new documentation&amp;nbsp;on this?&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The new code also has a hidden attribute:&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;@Hidden
attr _nameEnumValues = _getNameEnumValues

‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;And I am getting a yellow caution error from this:&amp;nbsp; "unused attribute_ str array _nameEnumValues()", which seems to drive a bunch of others warnings.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;How do I fix this?&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721965#M9470</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T06:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: 2020 Tree Loader Change Question</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721966#M9471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, this is a bug.&amp;nbsp; All the plant names should have been visible in the drop down box, but due to the bug, you don't see the other options.&amp;nbsp; We hope to fix this soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to the unused attribute warning, this is expected behavior.&amp;nbsp; The code will still compile and run.&amp;nbsp; I understand that it doesn't seem right, but this is just how it is for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 15:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721966#M9471</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-06-16T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: 2020 Tree Loader Change Question</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721967#M9472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to your post, we have updated the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Plant_Loader&lt;/SPAN&gt; so that you can hopefully see the plant names in the drop down box again.&amp;nbsp; To get the new version (v125), go to &lt;STRONG&gt;File&lt;/STRONG&gt; -&amp;gt; &lt;STRONG&gt;Manage ESRI.lib&lt;/STRONG&gt;, select ESRI.lib, and click Update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 08:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/2020-tree-loader-change-question/m-p/721967#M9472</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-06-18T08:53:26Z</dc:date>
    </item>
  </channel>
</rss>

