<?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: Import CGA rule from different CityEngine project in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514651#M6954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://github.com/Holisticnature/Complete_Street_Rule/blob/master/rules/Complete_Street.cga"&gt;Complete Street Rule&lt;/A&gt; and some of the Rules in the &lt;A href="http://www.arcgis.com/home/item.html?id=4b928739ca7c4effa11ee29530419057"&gt;Redland's Example&lt;/A&gt; reference Esri.lib assuming it will be available as a constant path in the CityEngine work space (chosen on installation). It is most common that the rule examples take the tree loader rule from Esri.lib for example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;import Tree : "/ESRI.lib/rules/Plants/Plant_Loader.cga" # Taken from ESRI.lib and uses its assets. Keep this in mind when using rule.&lt;BR /&gt;&lt;BR /&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 04:48:15 GMT</pubDate>
    <dc:creator>DavidWasserman</dc:creator>
    <dc:date>2016-10-13T04:48:15Z</dc:date>
    <item>
      <title>Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514644#M6947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a CityEngine project where I want to add a facade to a&amp;nbsp;building.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the "Facade.cga"&amp;nbsp;rulefile&amp;nbsp;in a project called "Urb-Day" and now I&amp;nbsp;want to use the same "Facade.cga"&amp;nbsp;rule in another project called "stormwater".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use the: import F_Facade: "Facade.cga" in the "Stormwater" project, and it works if the "Facade.cga" rulefile&amp;nbsp;is located in the project "stormwater", but I would prefer&amp;nbsp;that "Facade.cga" could be accessed&amp;nbsp;when it is still placed in the "Urb-Day" project. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is just the path to the facade.cga&amp;nbsp;rulefile&amp;nbsp;that is wrong, any suggestions?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 08:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514644#M6947</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2016-10-06T08:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514645#M6948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that answer, then I will just have to adjust to workflow i had imagined.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 09:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514645#M6948</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2016-10-08T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514646#M6949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm adding a few more inputs to this.&amp;nbsp;The answer provided is not completely correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CGA does support absolute paths&lt;/STRONG&gt; and it is actually explicitly designed to do so. As the original post states, it's the goal to import CGA rules from OTHER PROJECTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Library projects such as the ESRI.lib&lt;/STRONG&gt; are specifically there to provide &lt;STRONG&gt;rules that can be referenced&lt;/STRONG&gt; and not as a resource for copy-pasting into every single project!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When doing absolute file paths, make sure you use the correct formatting:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/ProjectName/...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The first forward slash is the 'workspace root', short for 'workspace'. It is mandatory an absolute path starts with this slash.&lt;/P&gt;&lt;P&gt;CGA's drag and drop functionality should automatically create the correct paths. E.g. drag and drop a plant rule file from the ESRI.lib into your own CGA source code&amp;nbsp;and check the line of code that is created for the 'import' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note why&amp;nbsp;using this is very important:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many CityEngine projects use the same assets, such as e.g. the plants. So copy-pasting all plants and street rules into every project we work with is a waste of space and makes versioning and project download times a nightmare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please push the 'library nature' of CityEngine, this is reason why both the ce.lib and the Esri.lib default projects are there. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #262626; font-size: 10.0pt;"&gt;matthias buehler&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt; || dipl. arch. eth zurich&lt;BR /&gt; ------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #262626;"&gt;&lt;BR /&gt; &lt;STRONG&gt;vrbn bühler&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;||&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #a6a6a6;"&gt;&lt;A href="https://remote.vrbn.io/OWA/redir.aspx?C=9ebb0f16054b424cba11db4e069b1d87&amp;amp;URL=http%3a%2f%2fwww.vrbn.io"&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;www.vrbn.io&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;|| winterthurerstrasse 51 || 8610 uster || switzerland&lt;SPAN style="color: #a6a6a6;"&gt;&lt;BR /&gt;&lt;SPAN&gt; +41 78 930 04 07 || &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:matthias.buehler@vrbn.io"&gt;matthias.buehler@vrbn.io&lt;/A&gt;&lt;SPAN&gt; || @vrbnio @mattb3d&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 10:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514646#M6949</guid>
      <dc:creator>MatthiasBuehler2</dc:creator>
      <dc:date>2016-10-10T10:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514647#M6950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Matthias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I reread the question, this is the far superior answer as it achieves the expected goal. Kristian, when I gave my answer I realized it sounded like I precluded the ability to import rules from other projects because I stated you should move the assets folder if you want to create a self contained project (I only suggested that because sometimes it is easy to forget). Please follow the instructions Matthias provide on importing rules with relative paths to other projects. I will say relative paths from the project folder are at least best practice, with &lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/celib/fileDirectory.html"&gt;common references in the documentation for some path functions&lt;/A&gt;&amp;nbsp;* for asset paths.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, I think Matthias might have to clarify absolute paths in CityEngine.&amp;nbsp;&lt;BR /&gt;Matthias, when I try the following for the lanes folder (All Forward Slash because \ common to windows is not recognized), the rule does not seem to find assets paths when they are absolute. This is the case if I put "/C:" or C: is removed along with other path components past CE install workspace as well.&amp;nbsp;&lt;BR /&gt;*Edit: Based on the response below, using an absolute path based on the computer's root directory will never work in CityEngine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="242620" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/242620_pastedImage_1.png" /&gt;&lt;BR /&gt;*Edit: In CityEngine the example below would be an absolute path because it is relative to the CityEngine root directory. I previously mentioned it as a relative path.&amp;nbsp;&lt;BR /&gt;-Absolute Paths- relative to CE Root directory and is project name dependent, if used for modular referencing it is assumed the project exists and its name space won't change. Have a / in front of them. This is how Esri.lib works for example.&amp;nbsp;&lt;BR /&gt;EX: /Complete_Street_Rule/assets/....&lt;/P&gt;&lt;P&gt;-Relative Paths- relative to the project folder's rule directory.&amp;nbsp;&lt;BR /&gt;-&amp;nbsp;EX "Complete_Streets"&lt;BR /&gt;&lt;IMG __jive_id="242630" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/242630_pastedImage_2.png" /&gt;&lt;BR /&gt;Is there a correct way to use absolute paths in CGA? Can you elaborate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 13:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514647#M6950</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-10-10T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514648#M6951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;'Absolute paths' in CGA&amp;nbsp; are always absolute to&amp;nbsp;the workspace root, never the windows drive (e.g. C)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;'Relative paths' in CGA&amp;nbsp;are always relative to the project.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;==&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Anything starting at the workspace root with a forward slash and the project name is an 'absolute path' within CityEngine, as &lt;STRONG&gt;CGA does not 'know' anything outside of the workspace&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Referencing a rule from an other project:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"/Otherproject/rules/targetRule.cga" &amp;nbsp;(= absolute path)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Referencing a rule from current&amp;nbsp;project:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"rules/targetRule.cga" &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;(=&amp;nbsp;relative path. Note it is important not to have a '/' at the beginning, as CE would search for a &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;project that is called 'rules'.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I'd &lt;STRONG&gt;always&lt;/STRONG&gt; avoid to reference &lt;STRONG&gt;assets&lt;/STRONG&gt; from other projects with absolute paths (as project name changes force many rule changes).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- If you have absolute paths for rule imports in a projects, it's implied that specific other projects need to exist in the workspace. This is ok, as it allows modular project references.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Note that CE has a heuristic that adapts the import statements if you change CGA rule names. This does not happen with project name changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style="color: #262626; font-size: 10.0pt;"&gt;matthias buehler&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt; || dipl. arch. eth zurich&lt;BR /&gt; ------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #262626;"&gt;&lt;BR /&gt; &lt;STRONG&gt;vrbn bühler&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;||&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://remote.vrbn.io/OWA/redir.aspx?C=9ebb0f16054b424cba11db4e069b1d87&amp;amp;URL=http%3a%2f%2fwww.vrbn.io"&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;www.vrbn.io&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;&amp;nbsp;&lt;/SPAN&gt;|| winterthurerstrasse 51 || 8610 uster || switzerland&lt;SPAN style="color: #a6a6a6;"&gt;&lt;BR /&gt;&lt;SPAN&gt; +41 78 930 04 07 || &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:matthias.buehler@vrbn.io"&gt;matthias.buehler@vrbn.io&lt;/A&gt;&lt;SPAN&gt; || @vrbnio @mattb3d&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514648#M6951</guid>
      <dc:creator>MatthiasBuehler2</dc:creator>
      <dc:date>2016-10-10T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514649#M6952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for clarifying the definition. So absolute paths in CE are those relative to the CityEngine workspace, and relative being to the working project rule directory. For most programming languages, I guess the confusion is that the master root directory is starting from a &amp;nbsp;higher level root (C/Drive Name).&lt;BR /&gt;Thanks for correcting me Matthias.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 14:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514649#M6952</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-10-10T14:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514650#M6953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;That advice about the Library functions is gold dust!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I've never come across this explained in any detail. It's certainly not in the Help File, and I can't find anything on the ESRI site, or recall anything on the old Procedural site that ever went over this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be really good to know how the .lib spaces work. All I know is that ESRI.lib pops up in each workspace, and I had assumed that it was a behind-the-scenes mechanism not to be touched. For example, how can corporate teams set up a template project structure, or ensure that any new workspace includes corporate library files? I&amp;nbsp;had not noticed&amp;nbsp;any example rule files referencing the ESRI.lib, so had no idea that this could be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ESRI staff - can we get some further explanation on all of this please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 03:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514650#M6953</guid>
      <dc:creator>timrobinson</dc:creator>
      <dc:date>2016-10-13T03:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514651#M6954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://github.com/Holisticnature/Complete_Street_Rule/blob/master/rules/Complete_Street.cga"&gt;Complete Street Rule&lt;/A&gt; and some of the Rules in the &lt;A href="http://www.arcgis.com/home/item.html?id=4b928739ca7c4effa11ee29530419057"&gt;Redland's Example&lt;/A&gt; reference Esri.lib assuming it will be available as a constant path in the CityEngine work space (chosen on installation). It is most common that the rule examples take the tree loader rule from Esri.lib for example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;import Tree : "/ESRI.lib/rules/Plants/Plant_Loader.cga" # Taken from ESRI.lib and uses its assets. Keep this in mind when using rule.&lt;BR /&gt;&lt;BR /&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 04:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514651#M6954</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-10-13T04:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514652#M6955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, &lt;/P&gt;&lt;P&gt;Thanks for the reply! I guess I've just not noticed the presence of those lines in the Redlands or Complete Streets rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would still be good to get an explanation as to&amp;nbsp;the ins and outs of&amp;nbsp;modifying the ESRI.lib or ce.lib content. Is it even advised?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Matt's reply above I get the idea that the lib content is encouraged to be used as a tool to avoid repeated copying in of resources - but what if we want to use more than just the very limited set of data in ESRI.lib for example? I'm just now aware of how to go about structuring such a resource tool, would be great to get some guidance from ESRI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 23:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514652#M6955</guid>
      <dc:creator>timrobinson</dc:creator>
      <dc:date>2016-10-13T23:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514653#M6956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri.lib does have all the default plant and some of the basic street rules that ESRI provides with it. The &amp;nbsp;Esri.lib libraries likely have nothing stopping from having other rules and their assets added to their project folders for import and use in other projects. Edit*- Based on Matthias's answer below, while you might be able to use the libraries this way, these are low level libraries that get replaced on start up if they are not found. It would likely be best to make personal library like Tims_Library or something like that. &amp;nbsp;Any change to the interface or folder structure&amp;nbsp;of Esri.lib or ce.lib is not recommended as it could break the paths that a lot of rules depend on.&amp;nbsp;&lt;BR /&gt;While I agree with Matthias's approach for managing CityEngine projects generally, if you need to share projects or distribute them, it makes sense to keep the assets of the rules you are using in the current project folder (UNLESS they come with CityEngine on install such as those in Esri.lib, in which call Esri.lib as the library it is intended). For example, for the complete street rule to be properly distributed, it requires its assets in the project so others can use it, but it does not require the plant's assets and rules because it expects the Esri.lib interface not to change (until it does, then I have work to do).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 01:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514653#M6956</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-10-14T01:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514654#M6957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;Sorry I had login issues as I'm changing accounts currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David has already given a few inputs, but to add some 'more behind the scenes insight'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ce.lib&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- Is a low-level library with some CGA stuff that is supposed to&amp;nbsp;not be changed.&lt;/P&gt;&lt;P&gt;- If you delete this project, it will be recreated on CE startup!&lt;/P&gt;&lt;P&gt;- [ This project can be made visible in the Navigator, but that's not needed for typical users. ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ESRI.lib&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;- As the name implies, it's content provided in a &lt;STRONG&gt;black box&lt;/STRONG&gt;. DO NOT CHANGE IT or add your stuff to it.&lt;/P&gt;&lt;P&gt;- Referencing files from other projects just technically works the same as referencing FROM the Esri.lib. 'By design'.&lt;/P&gt;&lt;P&gt;- If you delete the ESRI.lib project, it will be recreated with the default values on CE startup!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;general&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Goal:&amp;nbsp;create your own libraries for all the stuff you reuse often.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* * *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a separate note on this topic:&lt;/P&gt;&lt;P&gt;@ David :&lt;/P&gt;&lt;P&gt;It's great to have the complete streets you put your work in ( and literally mention or refer to it in every single post &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;), but based on the technical discussion we've just had above, I believe you to should talk to our Esri colleagues to have your content pushed INTO the ESRI.lib. Why:&lt;/P&gt;&lt;P&gt;- It is confusing for users to see the distinction between what Esri and what other people&amp;nbsp;provide and why they have to download e.g. all the plants twice, and so on.&lt;/P&gt;&lt;P&gt;- Streamlining the&amp;nbsp;usability&amp;nbsp;and proper integration in the above discussed 'LIBRARY' way of working would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for all the hard work you provide for the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style="color: #262626; font-size: 10.0pt;"&gt;matthias buehler&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt; || dipl. arch. eth zurich&lt;BR /&gt; ------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #262626;"&gt;&lt;BR /&gt; &lt;STRONG&gt;vrbn bühler&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;||&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://remote.vrbn.io/OWA/redir.aspx?C=9ebb0f16054b424cba11db4e069b1d87&amp;amp;URL=http%3a%2f%2fwww.vrbn.io"&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;www.vrbn.io&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 10.0pt; color: #a6a6a6;"&gt;&amp;nbsp;&lt;/SPAN&gt;|| winterthurerstrasse 51 || 8610 uster || switzerland&lt;SPAN style="color: #a6a6a6;"&gt;&lt;BR /&gt;&lt;SPAN&gt; +41 78 930 04 07 || &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:matthias.buehler@vrbn.io"&gt;matthias.buehler@vrbn.io&lt;/A&gt;&lt;SPAN&gt; || @vrbnio @mattb3d&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 09:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514654#M6957</guid>
      <dc:creator>MatthiasBuehler2</dc:creator>
      <dc:date>2016-10-14T09:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514655#M6958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adjusted my answer accordingly. I knew altering any paths would be a bad idea. I did a quick test of adding something to Esri.lib showed it could be used that way, and it worked for a simple rule. However it definitely sounds like a bad idea. &amp;nbsp;Best practice sounds like creating your own library projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can talk to you more off the post about that idea, but the short answer is we are trying to find another distribution solution. There are currently multiple distributions of the complete street rule and it is very confusing...not all of them are current with bug fixes etc. The rule was released on an Esri Attribution license and my contributions are under an additional Apache license (I have both in the project I have).&amp;nbsp;I'll email you about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Hey you have your business card in every post, let me use the CS rule as a shameless example all of the place. XD Besides, I party on the other GIS threads too...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the replies on this Matthias this has been helpful for me and the others on the thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514655#M6958</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-10-14T13:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514656#M6959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If GeoNet had any proper signatures, I'd use those. Any other forum offers a personal signature about who you are, so that's a different thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tend to like more general examples&amp;nbsp;instead of lots of screenshots that need a long description and explanation, that are kinda OT. But I see other people may 'shamelessly' (your words ..) prefer the other thing, hehe. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514656#M6959</guid>
      <dc:creator>MatthiasBuehler3</dc:creator>
      <dc:date>2016-10-14T13:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514657#M6960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's true. &amp;nbsp;File path info is either missing or really hard to find in the help pages. &amp;nbsp;We'll try to add this info to the help pages. &amp;nbsp;Thanks for pointing this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Matt, for explaining it all quite well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514657#M6960</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-10-14T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514658#M6961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was kidding around. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; That makes sense.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Fair enough. Pictures are fun though.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514658#M6961</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-10-14T13:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import CGA rule from different CityEngine project</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514659#M6962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that you all have explained how paths work inside of CityEngine projects and workspaces, I'll add another useful&amp;nbsp;detail. Rules and assets can be easily packaged as a "rule package" (file extension&amp;nbsp;RPK).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right-click on a rule (.cga file), click&amp;nbsp;"Share As...",&amp;nbsp;then click&amp;nbsp;Rule Package. The RPK file that is created bundles that&amp;nbsp;rule, along with any imported rules, and any assets used by the rule. There will then be no dependencies on paths, absolute or relative. The RPK can be applied in any project, regardless of the existence of the original projects, such as ESRI.lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can choose to "Include CGA source code", which allows users to see the rules and assets. This is what I do with all of my rules, so that others can&amp;nbsp;learn from what I did right or wrong with the rule. The RPK is a zip file, and can be extracted to a folder, like any zip file (you don't need to change the file extension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, RPKs can be applied as "symbology" in ArcGIS Pro. Similar to&amp;nbsp;how&amp;nbsp;a CGA rule is applied to a shape in CityEngine, in Pro, you can add the RPK to symbolize a feature layer, just like using a fill or stroke effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that importing&amp;nbsp;some library rules, like the Plant_Loader, will include all of the assets used by that rule, which in the&amp;nbsp;case of the Plant_Loader, will be 116MB of plant models added to the RPK. There are workarounds for this, which I won't go into here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful for those who need to distribute a rule, without having to worry about what is in another user's workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 17:13:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-cga-rule-from-different-cityengine-project/m-p/514659#M6962</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-10-14T17:13:26Z</dc:date>
    </item>
  </channel>
</rss>

