<?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: PyRevit CSV export IronPython.Runtime.List issue in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507821#M16039</link>
    <description>&lt;P dir="ltr"&gt;In case anyone is interested I did as &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt; suggested and found an answer:&lt;/P&gt;&lt;P dir="ltr"&gt;The &lt;EM&gt;IronPython.Runtime.List&lt;/EM&gt; object has to be iterated over in order to write rows.&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;BR /&gt;The last bit of code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Papopoprostupapo_0-1666722953389.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1131971i131EF24F14D33382/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Papopoprostupapo_0-1666722953389.png" alt="Papopoprostupapo_0-1666722953389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 18:40:31 GMT</pubDate>
    <dc:creator>Papopoprostupapo</dc:creator>
    <dc:date>2022-10-25T18:40:31Z</dc:date>
    <item>
      <title>PyRevit CSV export IronPython.Runtime.List issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507414#M16037</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am developing a pushbutton tool for PyRevit that will automatically gather readable data on project`s walltypes, their materials and their widths into a CSV file.&lt;/P&gt;&lt;P&gt;I managed to print out the data as lists of strings and lists of lists of strings. Then at the end I write the data to a csv file, but the strings return as IronPython.Runtime.List in the file, even though they appear as string inside pyrevit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Papopoprostupapo_0-1666713170981.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1131903i2EFC8AC795243882/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Papopoprostupapo_0-1666713170981.png" alt="Papopoprostupapo_0-1666713170981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I`ve tried to run the code through python3 by adding #!python3 at the first line, but that just breaks the __get__(i) part.&lt;/P&gt;&lt;P&gt;How do I get these strings into csv?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Papopoprostupapo_1-1666713442007.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1131906iB72C5178FA9596B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Papopoprostupapo_1-1666713442007.png" alt="Papopoprostupapo_1-1666713442007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Papopoprostupapo_2-1666713504552.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1131907i859E41D76AF7BB36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Papopoprostupapo_2-1666713504552.png" alt="Papopoprostupapo_2-1666713504552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 16:07:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507414#M16037</guid>
      <dc:creator>Papopoprostupapo</dc:creator>
      <dc:date>2022-10-25T16:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: PyRevit CSV export IronPython.Runtime.List issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507760#M16038</link>
      <description>&lt;P&gt;This is a pure Python question and has nothing to do with the Revit API, so this is not the optimal place to ask. I suggest you search the Internet for something like "python list to csv":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://duckduckgo.com/?q=python+list+to+csv+string" target="_blank"&gt;https://duckduckgo.com/?q=python+list+to+csv+string&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 18:16:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507760#M16038</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-10-25T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: PyRevit CSV export IronPython.Runtime.List issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507821#M16039</link>
      <description>&lt;P dir="ltr"&gt;In case anyone is interested I did as &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt; suggested and found an answer:&lt;/P&gt;&lt;P dir="ltr"&gt;The &lt;EM&gt;IronPython.Runtime.List&lt;/EM&gt; object has to be iterated over in order to write rows.&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;BR /&gt;The last bit of code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Papopoprostupapo_0-1666722953389.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1131971i131EF24F14D33382/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Papopoprostupapo_0-1666722953389.png" alt="Papopoprostupapo_0-1666722953389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 18:40:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pyrevit-csv-export-ironpython-runtime-list-issue/m-p/11507821#M16039</guid>
      <dc:creator>Papopoprostupapo</dc:creator>
      <dc:date>2022-10-25T18:40:31Z</dc:date>
    </item>
  </channel>
</rss>

