<?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: Setting attribute values in multiple rules in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/setting-attribute-values-in-multiple-rules/m-p/406973#M5577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use the default atts that work with the styles, but then also add a second attr (for the same thing), which you enable when needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. attr 'height' &amp;gt; set by style&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr 'height2' &amp;gt; use wherever needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sense ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe use such a construct in a function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;getHeight = 
&amp;nbsp;&amp;nbsp;&amp;nbsp; case whichAttr == "first":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height1
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height2

@Range ("first", "second")
attr whichAttr = "first"

attr height1 = 5
attr height2 = 10&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:30:37 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2021-12-11T18:30:37Z</dc:date>
    <item>
      <title>Setting attribute values in multiple rules</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setting-attribute-values-in-multiple-rules/m-p/406972#M5576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to set attributes to a certain values from within the rule and be able to change it latter in the inspector tab (like one would do with the styles). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can not use styles because i have multiple rules imporing other rules and object type is defined by several parameters within diferent rules (i.e there is footrpint rule, volume rule, facade rule and building type is defined by a set of parameters in all of these rules). Styles can not span multilpe inported rules (or can they?) so i decided to describe my building types through set of attributes from within the rule. The only problem with this approach is that once attribute values are set they can not be changed anymore in the inspector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to set a certain value to a parameter from within the rule and be able to change it latter in the inspector? Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 14:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setting-attribute-values-in-multiple-rules/m-p/406972#M5576</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2014-06-30T14:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting attribute values in multiple rules</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setting-attribute-values-in-multiple-rules/m-p/406973#M5577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use the default atts that work with the styles, but then also add a second attr (for the same thing), which you enable when needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. attr 'height' &amp;gt; set by style&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr 'height2' &amp;gt; use wherever needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sense ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe use such a construct in a function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;getHeight = 
&amp;nbsp;&amp;nbsp;&amp;nbsp; case whichAttr == "first":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height1
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height2

@Range ("first", "second")
attr whichAttr = "first"

attr height1 = 5
attr height2 = 10&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setting-attribute-values-in-multiple-rules/m-p/406973#M5577</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T18:30:37Z</dc:date>
    </item>
  </channel>
</rss>

