<?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: Open and read from .str file using Python in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11572620#M8527</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4428070"&gt;@Mouhammad_mazzaz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered exporting the robot model geometry as a dxf file and import it in other softwares?&lt;/P&gt;&lt;P&gt;I found that parsing text files is like opening a can of worms: the code is usually complex, bug-prone and hard to maintain.&lt;/P&gt;&lt;P&gt;Using the dxf export may save you a few headaches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a good reason to parse str files yourself, you would need to use `while` loops to loop over the various sections of the str file to extract the relevant information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacques&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 11:07:22 GMT</pubDate>
    <dc:creator>JacquesGaudin</dc:creator>
    <dc:date>2022-11-23T11:07:22Z</dc:date>
    <item>
      <title>Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11565719#M8520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can someone help me, I am trying to extract some data from the str file using python&amp;nbsp;&lt;BR /&gt;the thing is that I am able to read the data and print it but I can not search for the data using the line.startswith&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;how to deal with .str using python&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;this is a small example not the full code&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;with&lt;/SPAN&gt; &lt;SPAN&gt;open&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SourceFile&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"r"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;file&lt;/SPAN&gt;&lt;SPAN&gt;: # where SourceFile&amp;nbsp;= Structure.str&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt; &lt;SPAN&gt;line&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;file&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;line&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;startswith&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;" NODes &lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN&gt;# search for a keyword&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;printing&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;continue&lt;/SPAN&gt; &lt;SPAN&gt;# go to next line&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;elif&lt;/SPAN&gt; &lt;SPAN&gt;line&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;startswith&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;" ;CON"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;printing&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;break&lt;/SPAN&gt; &lt;SPAN&gt;#quit file reading&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;printing&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;line&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;PointsFile&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;# where PointsFile = a txt file to save the extracted points data to it&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PointsFile&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;close&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 20 Nov 2022 19:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11565719#M8520</guid>
      <dc:creator>Mouhammad_mazzaz</dc:creator>
      <dc:date>2022-11-20T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11565811#M8521</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4428070"&gt;@Mouhammad_mazzaz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine you want to use the *.str files to perform outside non-running reads&amp;nbsp;outside of Robot otherwise you can use the API.&lt;/P&gt;&lt;P&gt;At first glance, yes for reading nodes, for a start and a code used once, why not.&lt;/P&gt;&lt;P&gt;Only the first three letters are enough and they vary depending on the language.&lt;/P&gt;&lt;P&gt;For the startwith function you could replace it with contains + 3 letter code.&lt;/P&gt;&lt;P&gt;To stop, the "CON" code of the contours is not always the one following the nodes but any code can interrupt the previous one including END at the end of the file.&lt;/P&gt;&lt;P&gt;Nodes may also contain variable pitch repeat codes and are not always a contiguous list of coordinates, there may be also line breaks. So, you need to create a file reading pattern depending on the active code used.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/str-reference-manual/td-p/3191542" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/str-reference-manual/td-p/3191542&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 07:06:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11565811#M8521</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-11-21T07:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11567798#M8522</link>
      <description>Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&lt;BR /&gt;Thanks for the reply, Thats helps me alot.&lt;BR /&gt;I was actually asking myself that question does the node ends by the contour line every time&lt;BR /&gt;so what do you think the best way to transfer the model from robot to other software such as CSI ETABS&lt;BR /&gt;let's say the user does not have a license for RSA, and he reviced the concept model as an rtd and str files&lt;BR /&gt;and he need to develop the SD or the DD model (schematic or detailed design ) using other software&lt;BR /&gt;then the only way is using a tool reads the elements from the str file&lt;BR /&gt;I know it could be a lot information missing but it is still better than starting modeling from zero&lt;BR /&gt;and believe me it does specially if you have a huge model&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 16:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11567798#M8522</guid>
      <dc:creator>Mouhammad_mazzaz</dc:creator>
      <dc:date>2022-11-21T16:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11568071#M8523</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4428070"&gt;@Mouhammad_mazzaz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given the age of this software and the expertise of members of this forum and elsewhere, it's highly likely that this conversion method already exists for many of us, in various forms. Note that you can use VB, C#, or Python, to name just the most common options.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2025 10:06:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11568071#M8523</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-11-09T10:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11568147#M8524</link>
      <description>&lt;P&gt;Unfortunate there is no such a tool, I've searched and I found only 1 tool and it is quite expensive.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So I tried to do something similer using python and C#&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway lets hope one of the experts will reply on this topic&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 19:22:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11568147#M8524</guid>
      <dc:creator>Mouhammad_mazzaz</dc:creator>
      <dc:date>2022-11-21T19:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11569812#M8525</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4428070"&gt;@Mouhammad_mazzaz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you talking about&amp;nbsp;Geometry Gym?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 11:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11569812#M8525</guid>
      <dc:creator>Romanich</dc:creator>
      <dc:date>2022-11-22T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11570893#M8526</link>
      <description>Hi Romanich,&lt;BR /&gt;No It was a tool I saw it in youtube video, but I think Geometry Gym does not have a tool to convert between robot and etabs direct,&lt;BR /&gt;&lt;BR /&gt;I think the only way it can be done through grasshopper, robot to grasshopper then grasshopper to Etabs.&lt;BR /&gt;which can be done through the revit&lt;BR /&gt;ROBOT TO REVIT then REVIT TO CSI ETABS&lt;BR /&gt;&lt;BR /&gt;I am trying to find a solution for those does not have a robot or they do not know how to work on robot&lt;BR /&gt;&lt;BR /&gt;and I am struggling here with the options.&lt;BR /&gt;&lt;BR /&gt;I've learned some basic in C# and python and I need to work on a real examples so I can implement my programming skills into my work&lt;BR /&gt;&lt;BR /&gt;I would love to share any thing with me .&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 22 Nov 2022 18:12:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11570893#M8526</guid>
      <dc:creator>Mouhammad_mazzaz</dc:creator>
      <dc:date>2022-11-22T18:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11572620#M8527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4428070"&gt;@Mouhammad_mazzaz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered exporting the robot model geometry as a dxf file and import it in other softwares?&lt;/P&gt;&lt;P&gt;I found that parsing text files is like opening a can of worms: the code is usually complex, bug-prone and hard to maintain.&lt;/P&gt;&lt;P&gt;Using the dxf export may save you a few headaches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a good reason to parse str files yourself, you would need to use `while` loops to loop over the various sections of the str file to extract the relevant information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacques&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 11:07:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11572620#M8527</guid>
      <dc:creator>JacquesGaudin</dc:creator>
      <dc:date>2022-11-23T11:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read from .str file using Python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11579055#M8528</link>
      <description>DXF will export the geometry only.</description>
      <pubDate>Sat, 26 Nov 2022 07:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/open-and-read-from-str-file-using-python/m-p/11579055#M8528</guid>
      <dc:creator>Mouhammad_mazzaz</dc:creator>
      <dc:date>2022-11-26T07:45:02Z</dc:date>
    </item>
  </channel>
</rss>

