<?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: Manually setting streetWidth for setback() in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701391#M9182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do a lot of python, so fire away.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 15:05:19 GMT</pubDate>
    <dc:creator>BrettAchorn</dc:creator>
    <dc:date>2012-11-20T15:05:19Z</dc:date>
    <item>
      <title>Manually setting streetWidth for setback()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701389#M9180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working with an imported shape file that has lots, and I'm trying to use setback() with it.&amp;nbsp; I've done some analysis and I've got a list of all the street facing edges for each lot, but there doesn't seem like a good way to feed that information back into the system (there doesn't seem to be a good way to set an array attribute like streetWidth).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts on the right way to do this?&amp;nbsp; There doesn't seem to be a clear way to "manually" do the operation myself (not all the lots are quads, so comp(e) with variable length indices doesn't seem possible)&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;Brett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701389#M9180</guid>
      <dc:creator>BrettAchorn</dc:creator>
      <dc:date>2012-11-19T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Manually setting streetWidth for setback()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701390#M9181</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;You'll have to set this array with Python, this can not be done with CGA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you have some experience with scripting (esp. Python), this will be fairly technical .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:48:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701390#M9181</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-11-20T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Manually setting streetWidth for setback()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701391#M9182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do a lot of python, so fire away.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 15:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701391#M9182</guid>
      <dc:creator>BrettAchorn</dc:creator>
      <dc:date>2012-11-20T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Manually setting streetWidth for setback()</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701392#M9183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This thread : &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/CityEngine/forum-44564.html"&gt;http://forums.esri.com/CityEngine/forum-44564.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;page 2, my last post, script named 'setStreetEdges_v1.0.py'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the end of the script, esp. short before :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;ce.setAttribute(shape, objAttrName, streetWidthAttrValueList)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will show you how to write that list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing I've just noticed is that in this line :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;streetWidthAttrValueList = highestEdgeIndex*[0]&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; My coworker made a similar script which states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;streetWidthAttrValueList = highestEdgeIndex*[None]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it can be that then, the streetWidth() attributes with the value '0' do not appear in the Obj Attr list in the Inspector, which even may be better. Try playing with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Concerning the indexing :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that ArcGIS stores the vertex order clockwise, while CE interprets the vertex order counterclockwise, which messes up the order you have in ArcGIS. But you can fix this by a function which translates between the two worlds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if some things are unclear !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 12:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/manually-setting-streetwidth-for-setback/m-p/701392#M9183</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-11-21T12:50:28Z</dc:date>
    </item>
  </channel>
</rss>

