<?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: CityEngine - Rule File error in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654463#M11587</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73816"&gt;@ElieRizk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Your call to the setback operation needs to follow the correct syntax:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-setback.htm" target="_blank" rel="noopener"&gt;setback operation—ArcGIS CityEngine Resources | Documentation.&lt;/A&gt;&lt;BR /&gt;You are probably looking to something like this?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;setback(SETBACK_F){front: NIL | remainder: 
	setback(SETBACK_R){back: NIL | remainder:
		setback(SETBACK_S){left: NIL | remainder: 
                 setback(SETBACK_S){right: NIL | remainder:Footprint}}}}&lt;/LI-CODE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 13:57:19 GMT</pubDate>
    <dc:creator>plfontes</dc:creator>
    <dc:date>2025-10-01T13:57:19Z</dc:date>
    <item>
      <title>CityEngine - Rule File error</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654188#M11584</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;I am using CityEngine version 2024, and I am getting an unexpected token error on the following function:&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Lot&lt;/SPAN&gt; --&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;// Apply setbacks using positional parameters (front, right, back, left)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;setback&lt;/SPAN&gt;(&lt;SPAN&gt;SETBACK_F&lt;/SPAN&gt;, &lt;SPAN&gt;SETBACK_S&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;SETBACK_R&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;SETBACK_S&lt;/SPAN&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;{ &lt;SPAN&gt;remainder&lt;/SPAN&gt;: &lt;SPAN&gt;Footprint&lt;/SPAN&gt; | &lt;SPAN&gt;inside&lt;/SPAN&gt;: &lt;SPAN&gt;NIL&lt;/SPAN&gt; }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;I attached the CGA file for your reference.&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 14:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654188#M11584</guid>
      <dc:creator>ElieRizk</dc:creator>
      <dc:date>2025-09-30T14:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - Rule File error</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654462#M11586</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73816"&gt;@ElieRizk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The setback operation syntax is different to what you have in your CGA rule. If you are looking for individual setbacks per side, see the&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-setback.htm#ESRI_SECTION1_0564F7E911B947CA92C0EF047F131DFF" target="_self"&gt; examples at bottom&lt;/A&gt; in the setback cga reference.&lt;/P&gt;&lt;P&gt;Here is a basic snippet:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@Range(min=1, max=25)
attr setback_front = 10
@Range(min=1, max=25)
attr setback_left = 3
@Range(min=1, max=25)
attr setback_right = 2
@Range(min=1, max=25)
attr setback_back = 5

const dists = comp(fe)
	{ front : setback_front
	| left: setback_left
	| right: setback_right
	| back: setback_back }

@StartRule
Lot --&amp;gt; setback(dists) { all       = Garden.   |
                         remainder : Building }
                         
Building --&amp;gt;
	extrude(15)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654462#M11586</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2025-10-01T13:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - Rule File error</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654463#M11587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73816"&gt;@ElieRizk&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Your call to the setback operation needs to follow the correct syntax:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-setback.htm" target="_blank" rel="noopener"&gt;setback operation—ArcGIS CityEngine Resources | Documentation.&lt;/A&gt;&lt;BR /&gt;You are probably looking to something like this?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;setback(SETBACK_F){front: NIL | remainder: 
	setback(SETBACK_R){back: NIL | remainder:
		setback(SETBACK_S){left: NIL | remainder: 
                 setback(SETBACK_S){right: NIL | remainder:Footprint}}}}&lt;/LI-CODE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-rule-file-error/m-p/1654463#M11587</guid>
      <dc:creator>plfontes</dc:creator>
      <dc:date>2025-10-01T13:57:19Z</dc:date>
    </item>
  </channel>
</rss>

