<?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 Query Object Attributes from CGA in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517357#M7016</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;SPAN&gt;I am subdividing imported blocks using a python script. I note that the subdivision is automatically generating a potentially handy boolean "Object Attribute" for each resulting lot called "enclosed." However, I do not get how I can access this attribute from a CGA applied to the blocks? I see in the documentation a function called "getObjectAttr," however this function does not seem defined in CGA?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any direction would be welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jack&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 15:23:02 GMT</pubDate>
    <dc:creator>Jackde_Valpine</dc:creator>
    <dc:date>2011-11-14T15:23:02Z</dc:date>
    <item>
      <title>Query Object Attributes from CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517357#M7016</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;SPAN&gt;I am subdividing imported blocks using a python script. I note that the subdivision is automatically generating a potentially handy boolean "Object Attribute" for each resulting lot called "enclosed." However, I do not get how I can access this attribute from a CGA applied to the blocks? I see in the documentation a function called "getObjectAttr," however this function does not seem defined in CGA?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any direction would be welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jack&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517357#M7016</guid>
      <dc:creator>Jackde_Valpine</dc:creator>
      <dc:date>2011-11-14T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Object Attributes from CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517358#M7017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Jack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first, you need to initialize the attr in the CGA rule file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see this code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr enclosed = false

Lot --&amp;gt;
 case enclosed == true :
&amp;nbsp; color("#ff0000")
 else:
&amp;nbsp; color("#00ff00")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;once you have assigned the rule, change the &lt;/SPAN&gt;&lt;STRONG&gt;Attribute Source&lt;/STRONG&gt;&lt;SPAN&gt; to 'Object attribute'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the 2011 version, this is done with the little black triangle on white rectangle next to the attr entry in the Inspector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517358#M7017</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T22:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query Object Attributes from CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517359#M7018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matthias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the follow-up, I had just managed to finally get this figured out with some more exploration!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;hi Jack.&lt;BR /&gt;&lt;BR /&gt;first, you need to initialize the attr in the CGA rule file.&lt;BR /&gt;&lt;BR /&gt;see this code :&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr enclosed = false

Lot --&amp;gt;
 case enclosed == true :
&amp;nbsp; color("#ff0000")
 else:
&amp;nbsp; color("#00ff00")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;once you have assigned the rule, change the &lt;STRONG&gt;Attribute Source&lt;/STRONG&gt; to 'Object attribute'.&lt;BR /&gt;&lt;BR /&gt;In the 2011 version, this is done with the little black triangle on white rectangle next to the attr entry in the Inspector.&lt;BR /&gt;&lt;BR /&gt;Ok ?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/query-object-attributes-from-cga/m-p/517359#M7018</guid>
      <dc:creator>Jackde_Valpine</dc:creator>
      <dc:date>2021-12-11T22:34:11Z</dc:date>
    </item>
  </channel>
</rss>

