<?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: Hierarchy, linking different cga files. in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582453#M7876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, that clarified another question, but it does not seem&amp;nbsp;to be the problem in this particular&amp;nbsp;question, when linking the fourth rule file, which has&amp;nbsp;an attribute that none&amp;nbsp;of the other has, changing the value of the attribute in the script manually make changes to the scene but i can not access the attribute from the inspector. &amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/256802_Inspector.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;There should be a number five level called rf_BldgEnvelope which should be a sublayer to both the rf_BldgFootprint01 and rf_bldgFootprint02. I do not know is this is possible as it would become a very complex system, but looking back on the original "system"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/256803_hierarchy2.JPG" style="width: 620px; height: 244px;" /&gt;&lt;/P&gt;&lt;P&gt;I want the first file to give the possibility to chose if i want waterHandling or not, then in bldgFootprint I&amp;nbsp;want to be able to choose between which of the three BldgFootprint types I want, and in BldgEnvelope I want to choose between which of the three envelopes files I&amp;nbsp;want and so on. So you could say I want to be able to chose which way through the "tree" I&amp;nbsp;want to go and then be able to change the attributes which are linked to each step.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 10:05:39 GMT</pubDate>
    <dc:creator>KristianMortensen1</dc:creator>
    <dc:date>2016-11-03T10:05:39Z</dc:date>
    <item>
      <title>Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582449#M7872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently&amp;nbsp;working on a way to create a CGA&amp;nbsp;rule file which can generate many different buildings within a short period of time. The goal is to create a rulefile which lets the designer investigate multiple designs without having to redraw his/her project every time. I'm working with the assumption that a design of a building plan consists of three parts, the distributions of the building footprints (bldgFootprints), the envelope (bldgEnvelope) and a facade (bldgFacade).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to have a main cga&amp;nbsp;rule file, which link to a rule file that draws the bldgFootprints. This file then link to a file which draw the bldgEnvelope, and finally, the bldgEnvelope links to a cga file which draw the bldgFacade.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="The overall flow" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/255010_Hierarki_Rettet.jpg" style="width: 620px; height: 243px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid having to write all of the different "types" of building footprints in one rule file, I would like the bldgFootprint to link to other rule files, and by using a drop-down menu choose between them. Se diagram&amp;nbsp;below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/255027_Hierarki02_rettet.jpg" style="width: 620px; height: 295px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using this structure, it would be possible to write a new CGA file for a specific&amp;nbsp;building footprint, and then add that&amp;nbsp;to the overall structure simply by naming the instances within sub-rule file the right names. It would also eliminate&amp;nbsp;the need for writing one very long cga&amp;nbsp;file which can generate all possible building footprints. By using this structure it would be possible to make the "Database" bigger and bigger over time by adding more and more bldgFootprints0X to the project. So the first question, does this seems as a relevant way to do it, it will end up with a very very big amount of rule files&amp;nbsp;and some of them will maybe have the ability to do the exact same thing but on the other hand it allows the designer to create an individual script and add it to the overall structure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next question is, I simply can't get it to work, I have managed to link the main file with the bldgFootprint, link that to bldgFootprint0X, link those to bldgEnvelope, but the attributes which is located in bldgEnvelope is not visible in the inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like it is only possibly to have three layers of linked files visible in the inspector, so my "main" can link to "bldgFootprint" which can link to "bldgFootprint0X" and all the attributes show up, but when the &amp;nbsp;"bldgFootprint0X" links to "bldgEnvelope" the attributes for envelope does not show up..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for all the help and&amp;nbsp;thoughts I can get on the subject, does any of you have relevant&amp;nbsp;experiences with this type of project, can you see a more simple path through. Am I on the&amp;nbsp;right track or is it just stupid? If anybody has an interest in the project and which to follow it more, you are&amp;nbsp;welcome&amp;nbsp;to send a message to me.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 12:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582449#M7872</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2016-10-31T12:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582450#M7873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version are you using? &amp;nbsp;There was a bug in 2016.0 (and possibly earlier) with attribute passing on second level imports, and it may or may not be related to this. &amp;nbsp;This should be fixed in 2016.1 though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 13:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582450#M7873</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-10-31T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582451#M7874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using 2015.2 at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you&amp;nbsp;elaborate on "passing on second level"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 14:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582451#M7874</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2016-10-31T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582452#M7875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have an attribute in the parent class, you can "pass" it to the child class (this actually happens by default unless you tell it not to). &amp;nbsp;Sorry, "passing" is not the right word here. &amp;nbsp;If an attribute x is defined in the parent class (attr x = 10), and the child class also has an attribute x (attr x = 20), then the parent's value will overwrite the child's value unless you tell it not to overwrite it, and the value will be 10. &amp;nbsp;The details can be found here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/import.html?resultof=%22%69%6d%70%6f%72%74%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/import.html?resultof=%22%69%6d%70%6f%72%74%22%20"&gt;import&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend upgrading&amp;nbsp;to 2016.1 especially when using imports since several issues were fixed regarding imports and attribute propagation.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/cga_changelog.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/cga_changelog.html"&gt;CGA Changelog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 10:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582452#M7875</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-11-01T10:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582453#M7876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, that clarified another question, but it does not seem&amp;nbsp;to be the problem in this particular&amp;nbsp;question, when linking the fourth rule file, which has&amp;nbsp;an attribute that none&amp;nbsp;of the other has, changing the value of the attribute in the script manually make changes to the scene but i can not access the attribute from the inspector. &amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/256802_Inspector.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;There should be a number five level called rf_BldgEnvelope which should be a sublayer to both the rf_BldgFootprint01 and rf_bldgFootprint02. I do not know is this is possible as it would become a very complex system, but looking back on the original "system"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/256803_hierarchy2.JPG" style="width: 620px; height: 244px;" /&gt;&lt;/P&gt;&lt;P&gt;I want the first file to give the possibility to chose if i want waterHandling or not, then in bldgFootprint I&amp;nbsp;want to be able to choose between which of the three BldgFootprint types I want, and in BldgEnvelope I want to choose between which of the three envelopes files I&amp;nbsp;want and so on. So you could say I want to be able to chose which way through the "tree" I&amp;nbsp;want to go and then be able to change the attributes which are linked to each step.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 10:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582453#M7876</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2016-11-03T10:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582454#M7877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating such a hierarchy seems to work for me in 2016.1. &amp;nbsp;The attribute "height" is shared between all files, and the attribute "a" is only in buildingEnvelope.cga.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/257488_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 13:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582454#M7877</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-11-04T13:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582455#M7878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Cheryl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer, I&amp;nbsp;think I need to update my CE then. I can see that you are able to see the attributes for all of your linked files which is not possible to me. When there is more three "layers" I simply not show up in the inspector even though I'm able to change the attributes in the CGA rule file, but I guess that this happens only in 2015.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 09:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582455#M7878</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2016-11-07T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582456#M7879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this bug has resurfaced. Updated linked CGA files aren't "refreshing" in the master file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2020 23:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582456#M7879</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2020-09-01T23:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582457#M7880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Devin.&amp;nbsp;&amp;nbsp;There might be a refresh problem.&amp;nbsp; Do you have more details on when and what things are not being refreshed?&amp;nbsp; Do you have an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2020 09:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582457#M7880</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-09-02T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582458#M7881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a rule that subdivides land and then passes the "pad" to a master rule that builds the structure. All of that works fine. If I modify the master_structure rule everything refreshes fine.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Subdivide.cga --&amp;gt; master_structure.cga&lt;/PRE&gt;&lt;P&gt;The problem I'm encountering is that I've created a master rule to create PBR textures from a library and other master rules that create doors and windows. When those rules are modified (so a reference within a reference if you will) they do not refresh. I have to make some revision to the master_structurerule to get CityEngine to "see" revisions to 3rd tier references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Subdivide.cga --&amp;gt; master_structure.cga --&amp;gt; master_texture.cga
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;--&amp;gt; master_doors.cga
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;--&amp;gt; master_windows.cga&lt;/PRE&gt;&lt;P&gt;And if I just draw a shape and apply master_structure to it, I can edit its references with expected behavior - its the third level of reference where its breaking or not triggering a compile of the new cga.&amp;nbsp; Does this make sense? I can screenshare with you if you'd like.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582458#M7881</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-12-12T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchy, linking different cga files.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582459#M7882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to recreate your structure with &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Subdivide.cga&lt;/SPAN&gt;, &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;master_structure.cga&lt;/SPAN&gt;, and &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;master_texture.cga&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;. I have a shape that has the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Subdivide.cga&lt;/SPAN&gt; rule applied to it.&amp;nbsp; Then, I tried to modify &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;master_texture.cga&lt;/SPAN&gt;, (for example by changing the value of an attr in the cga file or adding a rotation to the rule), and it works for me (the model is correctly regenerated with the changes).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;We are aware that there are cgb refresh problems (and I've noted your issue), but without an exact repro, it will be hard to fix.&amp;nbsp; If you are willing to share more insights, we'd be grateful, and you could write to me privately instead if you'd be willing to privately share some code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2020 12:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/hierarchy-linking-different-cga-files/m-p/582459#M7882</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-09-14T12:59:57Z</dc:date>
    </item>
  </channel>
</rss>

