<?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: Rotate innerRect  building in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269233#M3785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Very true. I guess that's why I'm struggling to come up with a way of automating it. I've attached my code so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I originally just had setbacks to create my buildings, but this creates odd shaped buildings (triangular) as it depends on the shape of the lot as to how the building looks. So what I'm trying to do is only have buildings that have right angles, but then also have this sitting within a lot that looks realistic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i was trying to originally do was set the set the scope's rotation to be the same as the lots, but i couldn't get this to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 22:03:50 GMT</pubDate>
    <dc:creator>StevenCuthbert</dc:creator>
    <dc:date>2013-10-03T22:03:50Z</dc:date>
    <item>
      <title>Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269229#M3781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to rotate a building created by innerRect, so it sits flush with the property boundaries. The attached image shows some buildings not sitting 'naturally' in the lot. Preferably I would like them to site parallel to the lot boundaries away from the road. The only function that seem to rotate it is the 'rotate' tool, but as I'm trying to mass model i haven't found a way to automate the rotation. When looking into the scope.rx etc it just says it's 0, and i'm not sure how i get the angle of the lot boundary so i can align it to it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help with this would be wonderful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27947[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 03:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269229#M3781</guid>
      <dc:creator>StevenCuthbert</dc:creator>
      <dc:date>2013-10-02T03:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269230#M3782</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;Sorry, not following. &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;Can you post a graphic ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 12:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269230#M3782</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-02T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269231#M3783</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;I've attached two images which show a before and after of what i would like to happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the before image you can see that the building doesn't sit parallel to the lot boundaries furtherest away from the street.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27984[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the after image below the building sits parallel with the lot boundaries away from the street.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27988[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using innerRect to create the initial building footprint, but would like to change it's orientation to fit the lot better. (Liek what's seen in the after image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this makes more sense &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;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 22:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269231#M3783</guid>
      <dc:creator>StevenCuthbert</dc:creator>
      <dc:date>2013-10-02T22:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269232#M3784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmm..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'better' is difficult to explain in gemetric terms .. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what's your code so far ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did you try playing with setback() ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 17:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269232#M3784</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-03T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269233#M3785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Very true. I guess that's why I'm struggling to come up with a way of automating it. I've attached my code so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I originally just had setbacks to create my buildings, but this creates odd shaped buildings (triangular) as it depends on the shape of the lot as to how the building looks. So what I'm trying to do is only have buildings that have right angles, but then also have this sitting within a lot that looks realistic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i was trying to originally do was set the set the scope's rotation to be the same as the lots, but i couldn't get this to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 22:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269233#M3785</guid>
      <dc:creator>StevenCuthbert</dc:creator>
      <dc:date>2013-10-03T22:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269234#M3786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm. the code's missing .. Can you edit the post ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269234#M3786</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-04T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269235#M3787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, I didn't notice that cga files aren't valid attachments. I've pasted the code below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Building_Height =&amp;nbsp;&amp;nbsp; 9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Front_Yard_Depth =&amp;nbsp; 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Rear_Yard_Depth =&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Side_Yard_Depth =&amp;nbsp;&amp;nbsp; 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Roof_Angle =&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Roof_Overhang =&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Floors =&amp;nbsp;&amp;nbsp;&amp;nbsp; (Building_Height/6)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Rotation =&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr lotArea =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr bldgArea =&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Floor_Height =&amp;nbsp;&amp;nbsp; (Building_Height/Floors)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr bldgVolume =&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; innerRect()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; SetBack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetBack --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (geometry.area() &amp;gt; 4500):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("Lots.largest",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; DoSetbacks(1.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (geometry.area() &amp;gt; 3500 &amp;amp;&amp;amp; geometry.area() &amp;lt;= 4500):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("Lots.larger",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; DoSetbacks(1.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (geometry.area() &amp;gt; 1800 &amp;amp;&amp;amp; geometry.area() &amp;lt;= 2500):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("Lots.smaller",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; DoSetbacks(0.8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (geometry.area() &amp;lt; 1800):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("Lots.smallest",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; DoSetbacks(0.5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("Lots.middle",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; DoSetbacks(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DoSetbacks(reduceSetbackPercent) --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set(lotArea,geometry.area())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setback(Front_Yard_Depth * reduceSetbackPercent) { street.front: NIL | remainder: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; setback(Rear_Yard_Depth * reduceSetbackPercent) { street.back: NIL | remainder: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; setback(Side_Yard_Depth * reduceSetbackPercent) { street.side: NIL | remainder: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; BuildableArea(reduceSetbackPercent)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BuildableArea(BlgHeightRatio) --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (BlgHeightRatio == 1.3):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Up(1.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (BlgHeightRatio == 1.2):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Up(1.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (BlgHeightRatio == 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Up(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (BlgHeightRatio == 0.8):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Up(0.9)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case (BlgHeightRatio == 0.5):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Up(0.8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Up(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Up(Height)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set(bldgArea,geometry.area())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; extrude(Building_Height*Height)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set(bldgVolume,geometry.volume)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; report("Floorspace area (m2)",(bldgArea*Floors))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; report("Lot Area (m2)",lotArea)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("Max Building Footprint (m2)",bldgArea)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("GFA Potential (m3)",bldgVolume/Floor_Height)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; report("FAR Potential",bldgVolume/Floor_Height/lotArea)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ResidentialBlock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ResidentialBlock --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; comp(f) { top: Type | all : Side }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Type --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; roofGable(Roof_Angle, Roof_Overhang, Roof_Overhang)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Side --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; A.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 20:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269235#M3787</guid>
      <dc:creator>StevenCuthbert</dc:creator>
      <dc:date>2013-10-08T20:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269236#M3788</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;Well, your code looks valid, but there's nothing I see that would be specific about bad orientation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's do it like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You create about 5 Lot scenario sketches, with how the footprint shall be placed on that lot ( and which form it needs ), plus a few annotations on what you want to orient on. Plus, on which Lot sides any streets are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I can give you better inputs. Sounds ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269236#M3788</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-09T07:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269237#M3789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The attached image shows a block with individual lots. You'll see that some of the buildings don't run parallel to two boundaries of the lot, therefore the building doesn't sit squarely. I've highlighted the two boundaries edges (blue) that i would like the building boundaries (red) to align to. So in other words i would like the two red edges to be parallel to the two blue edges on the lots I've marked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The lots i haven't marked look fine, so I'm not to bothered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28209[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 02:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269237#M3789</guid>
      <dc:creator>StevenCuthbert</dc:creator>
      <dc:date>2013-10-10T02:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269238#M3790</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;ah, I see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so you'd like to get a rectangular footprint, but oriented to the 'back' of the lot instead of the front, the so-called 'first edge'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my first idea would be to align the scope to the 'back' edge, as follows :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;attr Building_Height = 9 attr Front_Yard_Depth = 10 attr Rear_Yard_Depth = 10 attr Side_Yard_Depth = 5 attr Roof_Angle = 20 attr Roof_Overhang = 1 attr Floors = (Building_Height/6) attr Rotation = 0&amp;nbsp; func = rint(geometry.nEdges / 2 )&amp;nbsp; @StartRule Lot --&amp;gt;&amp;nbsp; alignScopeToGeometry(yUp, 0, func)&amp;nbsp; setback(Front_Yard_Depth ) { street.front: NIL | remainder: &amp;nbsp; setback(Rear_Yard_Depth ) { street.back: NIL | remainder: &amp;nbsp;&amp;nbsp; setback(Side_Yard_Depth ) { street.side: NIL | remainder: &amp;nbsp;&amp;nbsp;&amp;nbsp; MakeRectangle &amp;nbsp;&amp;nbsp; } &amp;nbsp; }&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeRectangle --&amp;gt;&amp;nbsp; innerRect&amp;nbsp; Done.&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, this will not always work, but it may give you an idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28228[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 14:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269238#M3790</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-10T14:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate innerRect  building</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269239#M3791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Matthias.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A massive step in the right direction &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>Fri, 11 Oct 2013 03:29:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/rotate-innerrect-nbsp-building/m-p/269239#M3791</guid>
      <dc:creator>StevenCuthbert</dc:creator>
      <dc:date>2013-10-11T03:29:32Z</dc:date>
    </item>
  </channel>
</rss>

