<?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: Read data from a file in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357525#M4894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. It is just a text file (.txt)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2012 14:43:41 GMT</pubDate>
    <dc:creator>CharalamposApostolou</dc:creator>
    <dc:date>2012-04-09T14:43:41Z</dc:date>
    <item>
      <title>Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357523#M4892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to read data from a file? I have a document file with some attributes in each line and i want to read some attributes and build objects according to that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 16:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357523#M4892</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-03-16T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357524#M4893</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;SPAN&gt;it depends on the file type .. what file is it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 13:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357524#M4893</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-03-19T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357525#M4894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. It is just a text file (.txt)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 14:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357525#M4894</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-04-09T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357526#M4895</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;to do this, you'd need the CityEngine Advanced version and use it's Python Scripting functionality to 1] parse the file for the content, then 2] assign the values to the shapes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it may be easier to bring them in via a format which already supports such attribute metadata, such as .shp or Esri's GDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what's your source application from where you get the .txt data files ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 07:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357526#M4895</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-04-10T07:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357527#M4896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much for the reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the file. I have some shapes with a number id and in the file according to the id there are informations about the houses that are going to build. The text file is rows&amp;nbsp; and columns with integer numbers. Is there a tutorial to read?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 15:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357527#M4896</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-04-23T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357528#M4897</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;SPAN&gt;can you post a little example based on 2 shapes with their related text file ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 15:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357528#M4897</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-04-23T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357529#M4898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have a Lot with the name Lot50, and a txt file with the following format:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rooms&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arch&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;49&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i want to search in the txt file to find Lot50 and then build in the lot what it describes in the txt file. For example in Lot50 its going to build 2 rooms, a yard and no arch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 07:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357529#M4898</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-03T07:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357530#M4899</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;as follows :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a file with you data, e.g. info.txt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- put that file into your project's data folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- copy the attached python script into your project's scripts folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- open the script (double click)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- edit the absolute path to your into.txt file so it works on your machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a shape with StartRule 'Lot' (not Lot50 !)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- open it's Object Attributes tab, right-click into it. create an object attr called 'buildingID', with a float value of 49.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- select your shapes of interest on which you have set all buildingIDs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- run the python script via F9 (python editor must be active view, click on the code)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what happens is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- python checks the building ID, which is an object attr you have set for each building.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the list is parsed until the first entry of the line is the building ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- that line is given back&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- a new object attr for 'rooms', 'arch' and 'yard' is created with the values given in that line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;once you have those attributes now set, you can access them via CGA. initialize each object attr of interest in the CGA code by using :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr rooms = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr arch = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr yard = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sure you then POINT TO the object attr value and not to the rule value ( which is initialized with 0 ) using the connection editor in the inspector (the little rectangle icon with the triangle).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know if it works or if you have questions !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357530#M4899</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-05T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357531#M4900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Something is going wrong now. It gives me this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "C:\Users\Xaralampos Apostolou\CityEngine\Python_Example\scripts\getListData.py", line 38, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buildingID = int (ce.getAttribute(shape, 'buildingID')) # get building ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: int() argument must be a string or a number&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyException.fillInStackTrace(PyException.java:70)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.Throwable.&amp;lt;init&amp;gt;(Throwable.java:181)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.Exception.&amp;lt;init&amp;gt;(Exception.java:29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.RuntimeException.&amp;lt;init&amp;gt;(RuntimeException.java:32)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyException.&amp;lt;init&amp;gt;(PyException.java:46)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyException.&amp;lt;init&amp;gt;(PyException.java:43)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyException.&amp;lt;init&amp;gt;(PyException.java:61)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.Py.TypeError(Py.java:195)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyInteger.asPyInteger(PyInteger.java:84)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyInteger.int_new(PyInteger.java:41)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyInteger$exposed___new__.new_impl(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyType.invoke_new_(PyType.java:432)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyType.type___call__(PyType.java:1397)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyType.__call__(PyType.java:1388)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyObject.__call__(PyObject.java:397)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyObject.__call__(PyObject.java:401)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.pycode._pyx70.f$0(C:\Users\Xaralampos Apostolou\CityEngine\Python_Example\scripts\getListData.py:37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.pycode._pyx70.call_function(C:\Users\Xaralampos Apostolou\CityEngine\Python_Example\scripts\getListData.py)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyTableCode.call(PyTableCode.java:165)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyCode.call(PyCode.java:18)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.Py.runCode(Py.java:1204)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.Py.exec(Py.java:1248)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.pycode._pyx73.f$0(&amp;lt;string&amp;gt;:1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.pycode._pyx73.call_function(&amp;lt;string&amp;gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyTableCode.call(PyTableCode.java:165)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.PyCode.call(PyCode.java:18)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.Py.runCode(Py.java:1204)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.core.Py.exec(Py.java:1248)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.pydev.jython.JythonPlugin.exec(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.python.pydev.jython.JProcess.run(Unknown Source)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 18:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357531#M4900</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-05T18:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357532#M4901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what datatype is your buildingID ? did you create it as float or string ? ( CityEngine does not have ints, just floats for use with CGA )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;are you in general familiar with Python scripting or is this the first time ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know .. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357532#M4901</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-06T09:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357533#M4902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know only the basics of Python. I set the buildingID to float like you told me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 12:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357533#M4902</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-06T12:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357534#M4903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it works fine here ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the try commenting out some things and print the type of buildingID :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;buildingID = int (ce.getAttribute(shape, 'buildingID'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print type(buildingID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if this is really the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what version of CityEngine are you using ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 13:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357534#M4903</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-06T13:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357535#M4904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the 2010.3 version&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 13:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357535#M4904</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-06T13:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357536#M4905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;for me it's working too, in 2010.3, without edits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;are you using all forward slashes in the file paths ? ( '/')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry, but it seems you really have to track it down line by line.. it works fine here, so it must something small.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe add a screenshot, where I can see ALL the details too, ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357536#M4905</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-06T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357537#M4906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14972[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok i will try to find whats going on&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357537#M4906</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-06T14:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357538#M4907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think am doing something wrong in the second argument of this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buildingID = int(ce.getAttribute(Shape, &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;'buildingID'&lt;/STRONG&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did i have to set a path like "/CityEngine/..../buildingID" ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357538#M4907</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-06T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357539#M4908</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;SPAN&gt;no, the attribute is just an object attribute, thus it needs no path. it's linked to the shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;name correct ? no syntax error ? no space at the end or similar ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did you select the shape while running the script ? if the selection is empty, nothing is done ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357539#M4908</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-07T08:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357540#M4909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your help. the code worked perfectly. I hadto change something in the directory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 09:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357540#M4909</guid>
      <dc:creator>CharalamposApostolou</dc:creator>
      <dc:date>2012-06-25T09:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from a file</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357541#M4910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;shaaring, shaaring ! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;glad I was able to help !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 15:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/read-data-from-a-file/m-p/357541#M4910</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-25T15:57:25Z</dc:date>
    </item>
  </channel>
</rss>

