<?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: City Engine CGA FIle Problem in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408513#M5592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank You Matt for your lots of help. I try the 3D modelling software. i want to ask that there is no other option to solve this problem like we extrude the obj file with the attribute value????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 02:33:33 GMT</pubDate>
    <dc:creator>AmirSaleem</dc:creator>
    <dc:date>2014-03-06T02:33:33Z</dc:date>
    <item>
      <title>City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408507#M5586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i need a help, i want to categorised some poles data and assigned them a specific pole shape in object, kindly tell help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;one more thing any texture does not apply to the street network(Road).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 03:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408507#M5586</guid>
      <dc:creator>AmirSaleem</dc:creator>
      <dc:date>2014-02-26T03:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408508#M5587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1] Create the poles as separate asset files ( obj or dae ), add them to the assets folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2] Create a rule with the following code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3] Assign the rule to all imported pole position shapes ( originating from attributed point features )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
poleFolder = "assets/poletypes/"
attr poleType = ""
attr poleRotation = 0

@StartRule
Pole --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; s(0,0,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; i(poleFolder + poleType&amp;nbsp; + ".obj")
&amp;nbsp;&amp;nbsp;&amp;nbsp; r(scopeCenter, 0, poleRotation, 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; center(xz)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Pole.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if this makes sense ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408508#M5587</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T18:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408509#M5588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1] Create the poles as separate asset files ( obj or dae ), add them to the assets folder.&lt;BR /&gt;2] Create a rule with the following code&lt;BR /&gt;3] Assign the rule to all imported pole position shapes ( originating from attributed point features )&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
poleFolder = "assets/poletypes/"
attr poleType = ""
attr poleRotation = 0

@StartRule
Pole --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; s(0,0,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; i(poleFolder + poleType&amp;nbsp; + ".obj")
&amp;nbsp;&amp;nbsp;&amp;nbsp; r(scopeCenter, 0, poleRotation, 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; center(xz)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Pole.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if this makes sense ..&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You soo much Matt, this code works but the alignment and location of pole object still not adjust, the pole become to much&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;large &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408509#M5588</guid>
      <dc:creator>AmirSaleem</dc:creator>
      <dc:date>2021-12-11T18:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408510#M5589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Amir,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then it's most possibly those 2 points :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1] make sure the pole size is modeled correctly and in meters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2] make sure the pole assets are modeled near the cartesian origin ( put the pole 'bottom' to 0,0,0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 17:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408510#M5589</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-03-04T17:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408511#M5590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;poleFolder = "assets/Poles/"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr poleType = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr poleRotation = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pole --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s(0,0,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i(poleFolder + poleType&amp;nbsp; + "overheadpylon.obj")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r(scopeCenter, 0, poleRotation, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; center(xz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pole.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code how can i control the shape and size of pole.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 02:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408511#M5590</guid>
      <dc:creator>AmirSaleem</dc:creator>
      <dc:date>2014-03-05T02:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408512#M5591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;s(0,0,0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;makes sure that the ORIGINAL size of the asset is taken. Since the scope size (0,0,0) is only a point, CGA falls back to the asset dimension when inserting the asset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so you have to edit the 'overheadpylon.obj' asset in a 3d modeling application to give it the correct dimensions. Use e.g. Maya, Max, SketchUp or an other similar app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 10:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408512#M5591</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-03-05T10:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: City Engine CGA FIle Problem</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408513#M5592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank You Matt for your lots of help. I try the 3D modelling software. i want to ask that there is no other option to solve this problem like we extrude the obj file with the attribute value????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 02:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/city-engine-cga-file-problem/m-p/408513#M5592</guid>
      <dc:creator>AmirSaleem</dc:creator>
      <dc:date>2014-03-06T02:33:33Z</dc:date>
    </item>
  </channel>
</rss>

