<?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: Cannot connect to object attribute streetWidth() in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82658#M1152</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;Here's an example which shows how an image is used to map the width of streets via a 'class' attribute of a map layer. This way, you can encode different street types via width.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's 2 street types which drive the Dynamic City Layout System's parameters. Also, the 'lotAreaMin' and 'lotAreaMax' params are driven via the 'class' Map Layer. Btw. the 'class' Map Layer is of the type 'Mapping'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This so far is all non-related to CGA other than the 'class' Map Layer's attributes are written in CGA code. But this has nothing to do with the Model Generation using CGA. This is all SHAPE CREATION Process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Shape + 1 CGA Rule --&amp;gt; 1 Model&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in the CGA rule which creates the buildings, the streetWidth object attributes (which are inherited to each shape from the shape creation process) are sampled and checked concerning width. If the width is equal to the value of the wide street, the building is red.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since not all parameters can be inherited down to the shapes as object attributes - as mentioned in my last post - you may want to use sampling for each shape again (maybe even the same mapping layer as the layout uses) to drive other things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note especially how the attribute sources are set (in brackets).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read through this a couple of times and study the screenshots and project attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Play with the setup by selecting a street node and dragging it around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 12:17:24 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2013-01-04T12:17:24Z</dc:date>
    <item>
      <title>Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82650#M1144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just trying to connect to the object attribute of a dynamic shape in cga&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;attr shapeType = ""
attr streetWidth() = 0&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can connect to shapeType but not streetWidth/streetWidth(0) automatically generated object attribute. see screen cap attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 04:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82650#M1144</guid>
      <dc:creator>MatthewChan1</dc:creator>
      <dc:date>2012-12-17T04:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82651#M1145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that might be because you don't have a specific streetWidth() value. Have you tried using either streetWidth(*) or streetWidth(0)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope it helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 20:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82651#M1145</guid>
      <dc:creator>JoanneO_Brien</dc:creator>
      <dc:date>2012-12-17T20:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82652#M1146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think that might be because you don't have a specific streetWidth() value. Have you tried using either streetWidth(*) or streetWidth(0)?&lt;BR /&gt;&lt;BR /&gt;hope it helps&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply, I get error messages (token mismatch) with both "streetWidth(*)" and "streetWidth(0)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked through the CE documentation, couldn't find anything about this situation...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 04:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82652#M1146</guid>
      <dc:creator>MatthewChan1</dc:creator>
      <dc:date>2012-12-18T04:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82653#M1147</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;Use a parameter, e.g. 'i' for index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;attr streetWidth(i) =&amp;nbsp; 0&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that way you can go and grab each edge's entry based on the index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the first entry is 0 and has the biggest street width value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 10:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82653#M1147</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-12-28T10:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82654#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;Use a parameter, e.g. 'i' for index.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;attr streetWidth(i) =&amp;nbsp; 0&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that way you can go and grab each edge's entry based on the index.&lt;BR /&gt;&lt;BR /&gt;Note that the first entry is 0 and has the biggest street width value.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ok ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Awesome! This worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks Matt!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 00:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82654#M1148</guid>
      <dc:creator>MatthewChan1</dc:creator>
      <dc:date>2013-01-02T00:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82655#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a follow up question, Is it possible to connect to higher level parameters (Block parameter, Street parameters, intersection parameter etc...) which generates all the lot shapes? Similar idea to the streetWidth object attribute which gets passed on to the shapes after the street gets created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;say for example if I want the building envelope to have a setback (rule parameter) relative to the lotWidthMin (block parameter) value, how would i do that? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like the only object attribute available are streetWidth and shapeType.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers and happy new year!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 01:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82655#M1149</guid>
      <dc:creator>MatthewChan1</dc:creator>
      <dc:date>2013-01-02T01:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82656#M1150</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;These are basically 'just' parameters for the Dynamic Subdivision, so since those are not that important, they're not inherited to the shapes which are created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can map those Subdivision parameters with a map layer (image-based), so you could use the same map layer then for each created shape to sample again the value of interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting this up takes a little time, but I have some examples for this, if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 12:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82656#M1150</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-01-03T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82657#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;These are basically 'just' parameters for the Dynamic Subdivision, so since those are not that important, they're not inherited to the shapes which are created.&lt;BR /&gt;&lt;BR /&gt;But you can map those Subdivision parameters with a map layer (image-based), so you could use the same map layer then for each created shape to sample again the value of interest.&lt;BR /&gt;&lt;BR /&gt;Setting this up takes a little time, but I have some examples for this, if needed.&lt;BR /&gt;&lt;BR /&gt;Cheers !&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;examples on how this could be done would be great!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 00:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82657#M1151</guid>
      <dc:creator>MatthewChan1</dc:creator>
      <dc:date>2013-01-04T00:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to object attribute streetWidth()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82658#M1152</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;Here's an example which shows how an image is used to map the width of streets via a 'class' attribute of a map layer. This way, you can encode different street types via width.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's 2 street types which drive the Dynamic City Layout System's parameters. Also, the 'lotAreaMin' and 'lotAreaMax' params are driven via the 'class' Map Layer. Btw. the 'class' Map Layer is of the type 'Mapping'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This so far is all non-related to CGA other than the 'class' Map Layer's attributes are written in CGA code. But this has nothing to do with the Model Generation using CGA. This is all SHAPE CREATION Process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Shape + 1 CGA Rule --&amp;gt; 1 Model&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in the CGA rule which creates the buildings, the streetWidth object attributes (which are inherited to each shape from the shape creation process) are sampled and checked concerning width. If the width is equal to the value of the wide street, the building is red.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* * *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since not all parameters can be inherited down to the shapes as object attributes - as mentioned in my last post - you may want to use sampling for each shape again (maybe even the same mapping layer as the layout uses) to drive other things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note especially how the attribute sources are set (in brackets).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read through this a couple of times and study the screenshots and project attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Play with the setup by selecting a street node and dragging it around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 12:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cannot-connect-to-object-attribute-streetwidth/m-p/82658#M1152</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-01-04T12:17:24Z</dc:date>
    </item>
  </channel>
</rss>

