<?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 Apply Styles within CGA in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/355463#M4877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if there is a way to apply a pre-defined style within a CGA rule - from within that rule or when imported. For example, I have a CGA rule file that builds buildings from footprints - and there are a number of pre-defined styles - ApartmentBuilding, MixedUse, Office....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now writing another rule that will be applied to a parcel. I'm writing some zoning to go with it - like setbacks etc... as well as some code to generate parking lots. The remaining area would be the footprint. I know I can reference the imported rule to generate the the shape, but I'm wondering if there is a way to specify a style and not just a start rule. I keep thinking I'm missing something really obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what i have is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lot--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; split(z) {Side_Yard:SideYard | ~1:split(x) {Front_Yard:FrontYard | ~1:Middle | Rear_Yard:RearYard} | Side_Yard:SideYard}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Middle--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BuildingCGA.FootprintStartRule&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and wondering if there is a way to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lot--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; split(z) {Side_Yard:SideYard | ~1:split(x) {Front_Yard:FrontYard | ~1:Middle | Rear_Yard:RearYard} | Side_Yard:SideYard}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Middle--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BuildingCGA.FootprintStartRule(somePreDefinedStyle)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Jan 2015 07:10:51 GMT</pubDate>
    <dc:creator>DevinLavigne</dc:creator>
    <dc:date>2015-01-24T07:10:51Z</dc:date>
    <item>
      <title>Apply Styles within CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/355463#M4877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if there is a way to apply a pre-defined style within a CGA rule - from within that rule or when imported. For example, I have a CGA rule file that builds buildings from footprints - and there are a number of pre-defined styles - ApartmentBuilding, MixedUse, Office....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now writing another rule that will be applied to a parcel. I'm writing some zoning to go with it - like setbacks etc... as well as some code to generate parking lots. The remaining area would be the footprint. I know I can reference the imported rule to generate the the shape, but I'm wondering if there is a way to specify a style and not just a start rule. I keep thinking I'm missing something really obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what i have is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lot--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; split(z) {Side_Yard:SideYard | ~1:split(x) {Front_Yard:FrontYard | ~1:Middle | Rear_Yard:RearYard} | Side_Yard:SideYard}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Middle--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BuildingCGA.FootprintStartRule&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and wondering if there is a way to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lot--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; split(z) {Side_Yard:SideYard | ~1:split(x) {Front_Yard:FrontYard | ~1:Middle | Rear_Yard:RearYard} | Side_Yard:SideYard}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Middle--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BuildingCGA.FootprintStartRule(somePreDefinedStyle)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 07:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/355463#M4877</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2015-01-24T07:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Styles within CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/1290708#M11003</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200150"&gt;@DevinLavigne&lt;/a&gt;&amp;nbsp;did you ever get a solution to this? I'm trying to implement the same thing.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 16:57:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/1290708#M11003</guid>
      <dc:creator>DKossowsky</dc:creator>
      <dc:date>2023-05-18T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Styles within CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/1291003#M11006</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/472643"&gt;@DKossowsky&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Could an extension rule override solve this for you? There is an basic example at the bottom of the &lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-import-keyword.htm" target="_self"&gt;import keyword&lt;/A&gt; page in the cga reference.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/apply-styles-within-cga/m-p/1291003#M11006</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2023-05-19T12:42:21Z</dc:date>
    </item>
  </channel>
</rss>

