<?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 text from .txt file and insert into text like a field or something in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817613#M33224</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3476712"&gt;@kibitotato&lt;/a&gt; ChatGPT is garbage, stop believing all the news hype about it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you help us help you by sharing your TEXT file as well as a destination DWG file so we can all have a better understanding of your need and intent please?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;or if you prefer using your native language, please do so here or if there is one then find your native language forum here &lt;A href="https://forums.autodesk.com/" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pendean_0-1678711147202.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1187992iA563F97763062230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pendean_0-1678711147202.png" alt="pendean_0-1678711147202.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 12:39:30 GMT</pubDate>
    <dc:creator>pendean</dc:creator>
    <dc:date>2023-03-13T12:39:30Z</dc:date>
    <item>
      <title>Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813092#M33217</link>
      <description>&lt;P&gt;Are there any way to have a txt file asociated to a proyect with multiple dwg and then use de txt file as a input of data to text field into the dwgs?&lt;/P&gt;&lt;P&gt;I dont know if I explained ok because my english is not a big thing... sorry about that.&lt;/P&gt;&lt;P&gt;love this forum.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813092#M33217</guid>
      <dc:creator>kibitotato</dc:creator>
      <dc:date>2023-03-10T16:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813109#M33218</link>
      <description>&lt;P&gt;As 'field' do you mean just MTEXT or actual FIELD that would change the content if the file changed?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:20:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813109#M33218</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-03-10T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813112#M33219</link>
      <description>&lt;P&gt;the second one. Field that would change the content if the file changed&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:22:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813112#M33219</guid>
      <dc:creator>kibitotato</dc:creator>
      <dc:date>2023-03-10T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813113#M33220</link>
      <description>&lt;P&gt;It could be done. We have an app&amp;nbsp;&lt;A href="https://jtbworld.com/jtb-excel2textfield" target="_blank"&gt;JTB Excel2TextField&lt;/A&gt;&amp;nbsp;for reading from Excel so we could create something that reads from a text file too.&amp;nbsp; If you are interested contact us through our website.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:22:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813113#M33220</guid>
      <dc:creator>JTBWorld</dc:creator>
      <dc:date>2023-03-10T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813141#M33221</link>
      <description>&lt;P&gt;can´t pay so much for every lisp i want... to many desires... by the way. thanks for answering&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:36:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813141#M33221</guid>
      <dc:creator>kibitotato</dc:creator>
      <dc:date>2023-03-10T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813172#M33222</link>
      <description>&lt;P&gt;why don't you use a block with ATTOUT and ATTIN (should be simple enough to automate as well).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 16:49:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11813172#M33222</guid>
      <dc:creator>john.kaulB9QW2</dc:creator>
      <dc:date>2023-03-10T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817510#M33223</link>
      <description>&lt;P&gt;Chat GPT made this to me- But it doesn´t work. Does it make any sense for anyone here? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun set-field-from-file (field-name file-path)&lt;BR /&gt;(setq file-content (with-open-file (file file-path :direction :input)&lt;BR /&gt;(loop for line = (read-line file nil)&lt;BR /&gt;while line&lt;BR /&gt;collect line)))&lt;BR /&gt;(setq field (tblsearch "FIELD" field-name))&lt;BR /&gt;(if field&lt;BR /&gt;(progn&lt;BR /&gt;(setq field-code (cdr (assoc 2 field)))&lt;BR /&gt;(setq field-prompts (cdr (assoc 3 field)))&lt;BR /&gt;(setq field-data (list (list (car field-prompts) (car file-content)))))&lt;BR /&gt;(setq field-code (rtos (vlax-invoke-method (vlax-ename-&amp;gt;vla-object "acadDocumentManager")&lt;BR /&gt;'GetSystemVariable&lt;BR /&gt;(vlax-lookup-property (vlax-get (vlax-get-property (vlax-get-acad-object) 'Documents) 0)&lt;BR /&gt;'ActiveLayout))&lt;BR /&gt;2 2))&lt;BR /&gt;(setq field-data (list (list field-name (car file-content)))))&lt;BR /&gt;(command "_FIELD" "EDIT" field-code field-data ""))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:05:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817510#M33223</guid>
      <dc:creator>kibitotato</dc:creator>
      <dc:date>2023-03-13T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817613#M33224</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3476712"&gt;@kibitotato&lt;/a&gt; ChatGPT is garbage, stop believing all the news hype about it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you help us help you by sharing your TEXT file as well as a destination DWG file so we can all have a better understanding of your need and intent please?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;or if you prefer using your native language, please do so here or if there is one then find your native language forum here &lt;A href="https://forums.autodesk.com/" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pendean_0-1678711147202.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1187992iA563F97763062230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pendean_0-1678711147202.png" alt="pendean_0-1678711147202.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:39:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817613#M33224</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-03-13T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Read text from .txt file and insert into text like a field or something</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817670#M33225</link>
      <description>&lt;P&gt;there's a textfilefield sample one of the older ARX SDKS, it works, you just need to bribe someone to compile it for you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;shameless plug xlsx to field, office not required, its a trial, but it doesn't expire, but it will only evaluate the firs 20 fields&lt;/P&gt;&lt;P&gt;&lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=4446191126131749248&amp;amp;appLang=en&amp;amp;os=Win64" target="_blank"&gt;https://apps.autodesk.com/ACD/en/Detail/Index?id=4446191126131749248&amp;amp;appLang=en&amp;amp;os=Win64&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/read-text-from-txt-file-and-insert-into-text-like-a-field-or/m-p/11817670#M33225</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2023-03-13T13:04:40Z</dc:date>
    </item>
  </channel>
</rss>

