<?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 Setback Rule Problem in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128780#M1735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you all are safe and well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with my cga code that I have no idea how to fix. Trying to create edge fence for Lots by using the setback rule, what&amp;nbsp; I have&amp;nbsp;are Lots has street attribute. When I use the setback rule it works fine until i extrude it. As shown below somehow the edge that was the back of the street was extruded the same as street front whilst the sides worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487028_setback.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;version&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"2019.1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f5fc0;"&gt;@Enum &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"yes"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"no"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;attr&lt;/STRONG&gt; &lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fencing&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; = &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"no"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;attr&lt;/STRONG&gt; &lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fence_Width&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; =0.025&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f5fc0;"&gt;@StartRule&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lot&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;cleanupGeometry&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(all, 0.1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;EM style="color: green; font-size: 10.0pt; "&gt;array&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn_Border&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn_Border&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;case&lt;/STRONG&gt; &lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fencing&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"yes"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;offset&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(-&lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fence_Width&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Build_Fence&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Build_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; --&amp;gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;comp&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(f) { &lt;/SPAN&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;inside&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; | border= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Fence_Sort&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Fence_Sort&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;setback&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;( &lt;/SPAN&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;comp&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(fe) { street.front = 5 }) { all =&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Front_Fence&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"Front Fence"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;) | remainder=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Rear_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Front_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;extrude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(world.y,1.2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Rear_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;extrude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(world.y,1.8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;extrude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(0.05)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"#b3c989"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2020 00:49:34 GMT</pubDate>
    <dc:creator>Kevin_Z</dc:creator>
    <dc:date>2020-04-01T00:49:34Z</dc:date>
    <item>
      <title>Setback Rule Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128780#M1735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you all are safe and well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with my cga code that I have no idea how to fix. Trying to create edge fence for Lots by using the setback rule, what&amp;nbsp; I have&amp;nbsp;are Lots has street attribute. When I use the setback rule it works fine until i extrude it. As shown below somehow the edge that was the back of the street was extruded the same as street front whilst the sides worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487028_setback.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;version&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"2019.1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f5fc0;"&gt;@Enum &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"yes"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"no"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;attr&lt;/STRONG&gt; &lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fencing&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; = &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"no"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;attr&lt;/STRONG&gt; &lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fence_Width&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; =0.025&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f5fc0;"&gt;@StartRule&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lot&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;cleanupGeometry&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(all, 0.1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;EM style="color: green; font-size: 10.0pt; "&gt;array&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn_Border&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn_Border&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;case&lt;/STRONG&gt; &lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fencing&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"yes"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;offset&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(-&lt;/SPAN&gt;&lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;fence_Width&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Build_Fence&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Build_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; --&amp;gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;comp&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(f) { &lt;/SPAN&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;inside&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; | border= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Fence_Sort&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Fence_Sort&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;setback&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;( &lt;/SPAN&gt;&lt;STRONG style="color: #0000c0; font-size: 10.0pt; "&gt;comp&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(fe) { street.front = 5 }) { all =&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Front_Fence&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"Front Fence"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;) | remainder=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Rear_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Front_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;extrude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(world.y,1.2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Rear_Fence&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;extrude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(world.y,1.8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;Lawn&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;--&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;extrude&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(0.05)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #600060;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"#b3c989"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 00:49:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128780#M1735</guid>
      <dc:creator>Kevin_Z</dc:creator>
      <dc:date>2020-04-01T00:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setback Rule Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128781#M1736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not exactly sure what result you expected.&amp;nbsp; What is wrong with the front and back extrusions in the screenshot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you want to create a fence around a lot where the fence on the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;street.front&lt;/SPAN&gt; side is setback some distance while the fences on all other sides remain on the edge of the lot?&amp;nbsp; If so, then I would recommend a different approach.&amp;nbsp; In your code, performing an &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;offset&lt;/SPAN&gt; to get the border faces and then performing a &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;setback&lt;/SPAN&gt; on those faces&amp;nbsp;is probably not what you intended&amp;nbsp;because the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;setback&lt;/SPAN&gt; is trying to perform setbacks on all 16 edges (4 edges per border face x 4 faces).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend doing the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;setback&lt;/SPAN&gt; first to get the polygon whose edges are&amp;nbsp;where you want your fence to be.&amp;nbsp; Then, create your fence.&amp;nbsp; You can either create your fence by using &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;offset&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;extrude&lt;/SPAN&gt; (as you did in your code), or if you want a more complicated fence, you can use one of the fence rules from ESRI.lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Lot --&amp;gt;
     setback(comp(fe) {street.front: 5}) { all= Lawn | remainder= FencePolygon }
	
FencePolygon --&amp;gt;
     offset(-fence_width)
     comp(f) { inside= Lawn | border= extrude(fence_height) Fence. }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fence rules in ESRI.lib:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Fence_On_Polygon.cga&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Fence_On_Polygon_Simple.cga&lt;/SPAN&gt; create fences along polygon edges.&amp;nbsp; To use these, change the code as follows:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import Fence_On_Polygon:"/ESRI.lib/rules/Fences/Fence_On_Polygon.cga"

FencePolygon --&amp;gt;
     Fence_On_Polygon.Generate&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128781#M1736</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T07:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setback Rule Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128782#M1737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheryl&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, what I'm trying to do something like the image below, that the front yard of the lot installs low fences (maintain street appeal)and the back of rest of the lot uses high fences for (privacy), with the code above the back facing edge(fence) only extruded 1.2 rather than the intended 1.8 so I'm wondering what did I do wrong and how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code sets back the front yard which splits the polygon up and by given different heights for the&amp;nbsp; boarders of the two area I can achieve what I want. But&amp;nbsp; I dont know how to code it such that the split areas can be recombined to be used for&amp;nbsp;applying the local government planning rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487032_Fence.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 10:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128782#M1737</guid>
      <dc:creator>Kevin_Z</dc:creator>
      <dc:date>2020-04-01T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setback Rule Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128783#M1738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code makes a fence where the front is a different height than the other sides.&amp;nbsp; It performs an &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;offset&lt;/SPAN&gt; on a lot and extrudes the offset borders such that the side facing the street front is a different height than the others.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Lot --&amp;gt;
   offset(-fence_depth)
   comp(f) { inside=Lawn | border: r(90,0,0) Fence }
	
Fence --&amp;gt;
   case geometry.isOriented(street.front):
      r(-90,0,0)
      extrude(fence_height_front)
   else:
      r(-90,0,0)
      extrude(fence_height_other)
‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128783#M1738</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T07:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Setback Rule Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128784#M1739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cheryl for your great help,&amp;nbsp;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/487721_Fence1.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/setback-rule-problem/m-p/128784#M1739</guid>
      <dc:creator>Kevin_Z</dc:creator>
      <dc:date>2020-04-07T11:15:53Z</dc:date>
    </item>
  </channel>
</rss>

