<?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: Exporting data to text file in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625163#M111059</link>
    <description>&lt;P&gt;Of course it can.&lt;/P&gt;
&lt;P&gt;What values are you looking to export?&lt;/P&gt;
&lt;P&gt;A sample DWG file would be good for us to look at; sample output too.&lt;/P&gt;
&lt;P&gt;You will probably have to specify a precision for real numbers.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 21:01:36 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2017-12-14T21:01:36Z</dc:date>
    <item>
      <title>Exporting data to text file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625109#M111057</link>
      <description>&lt;P&gt;Hi everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to know can i make lisp save some data i have calculated inside from a drawing to a text file.&lt;/P&gt;&lt;P&gt;I know one command in AutoCAD can make this (MassProperties)&lt;/P&gt;&lt;P&gt;Can this be achieved by LISP code .&lt;/P&gt;&lt;P&gt;Thanks for all&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:33:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625109#M111057</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2017-12-14T20:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to text file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625159#M111058</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3037613"&gt;@Muhammed.OPERA&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to know can i make lisp save some data i have calculated inside from a drawing to a text file.&lt;/P&gt;
&lt;P&gt;I know one command in AutoCAD can make this (MassProperties)&lt;/P&gt;
&lt;P&gt;Can this be achieved by LISP code .&lt;/P&gt;
&lt;P&gt;Thanks for all&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Once you have a file open for writing, you can write to&amp;nbsp;that file. Or if you are just trying to write out the &lt;EM&gt;massprop &lt;/EM&gt;output&lt;/P&gt;
&lt;PRE&gt;(command "._massprop" ss1 "" "_y" ""); ss1 is a selectionset of objects&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625159#M111058</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-12-14T21:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to text file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625163#M111059</link>
      <description>&lt;P&gt;Of course it can.&lt;/P&gt;
&lt;P&gt;What values are you looking to export?&lt;/P&gt;
&lt;P&gt;A sample DWG file would be good for us to look at; sample output too.&lt;/P&gt;
&lt;P&gt;You will probably have to specify a precision for real numbers.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:01:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625163#M111059</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-12-14T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to text file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625320#M111060</link>
      <description>&lt;P&gt;I have searches and find something that worked correctly with me&lt;/P&gt;&lt;PRE&gt;(setq F_P (getfiled "OPERA_Stair" "" "txt" 1))
  (setq F_P (open F_P "W"))
  (write-Line (strcat 000A) F_P)
  (close F_P)&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625320#M111060</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2017-12-14T21:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to text file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625561#M111061</link>
      <description>&lt;P&gt;It appears that the strcat wasn't necessary, but &lt;STRONG&gt;YOU GOT IT!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;And you can write as many lines as you want before closing the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do presume that 000A was actually a string variable.&amp;nbsp; You can write-line only strings to a file.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 23:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625561#M111061</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-12-14T23:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to text file</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625609#M111062</link>
      <description>&lt;P&gt;I know&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&lt;/P&gt;&lt;P&gt;it's just a quick thing i have written here. In my full code i use Strcat to write many strings.&lt;/P&gt;&lt;P&gt;and yup 000A is a predefined variable i used in mu code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 00:35:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-data-to-text-file/m-p/7625609#M111062</guid>
      <dc:creator>Muhammed.OPERA</dc:creator>
      <dc:date>2017-12-15T00:35:05Z</dc:date>
    </item>
  </channel>
</rss>

