<?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: Lisp to copy mtext to clipboard in one step in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511541#M112506</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** never mind, code deleted **&lt;/P&gt;&lt;P&gt;Didn't refresh the page in time and didn't see&amp;nbsp;BeekeeCZ's reply yet &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 14:01:52 GMT</pubDate>
    <dc:creator>DannyNL</dc:creator>
    <dc:date>2017-11-02T14:01:52Z</dc:date>
    <item>
      <title>Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511470#M112504</link>
      <description>&lt;P&gt;Can anyone direct me to a lisp that will copy all the text inside an mtext entity by clicking on the entity, so that I can paste it into excel?&amp;nbsp; I grow tired of double clicking the text, ctrl A, ctrl C, then ctrl V into Excel.&amp;nbsp; Just want to cut down the number of keystrokes for something I have to do a lot.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511470#M112504</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511491#M112505</link>
      <description>&lt;PRE&gt;;TEXT ------------------------------

(vl-load-com)

(defun c:CopyText2ClipBoard ( / en tx html) ; Copy Text To Clipboard
  
  (and (setq en (ssget ":S" '((0 . "*TEXT"))))
       (setq en (ssname en 0))
       (setq en (vlax-ename-&amp;gt;vla-object en))
       (vlax-property-available-p en 'textstring)
       (setq tx (vla-get-textstring en))
       (vlax-invoke (vlax-get (vlax-get (setq html (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'setData "Text" tx)
       (vlax-release-object html)
       )
  
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 19:56:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511491#M112505</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-01-15T19:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511541#M112506</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** never mind, code deleted **&lt;/P&gt;&lt;P&gt;Didn't refresh the page in time and didn't see&amp;nbsp;BeekeeCZ's reply yet &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511541#M112506</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-02T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511555#M112507</link>
      <description>&lt;P&gt;When I issue the command and click the area in circle one, it should paste into circle 2 as shown, but instead, I'm getting what's in circle 3.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/420901i5CEFA40EA3EE8BB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.jpg" alt="Clipboard01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511555#M112507</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511574#M112508</link>
      <description>&lt;P&gt;Let me give it a shot Danny, CZ's has a little issue.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511574#M112508</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511590#M112509</link>
      <description>&lt;P&gt;You're joking right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Internet Explorer (htlmfile) to copy something to the clipboard&amp;nbsp;only increases AutoCAD's process memory usage by ~5 MB or so, which is akin to duck hunting with a 50 caliber Howitzer anti-aircraft gun.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has no cost in terms of process memory usage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Write the text to a file (call it clipboard.txt in this example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. From LISP, execute the following: DOS command: "c:\windows\system32\clip.exe &amp;lt; clipboard.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;&lt;PRE&gt;;TEXT ------------------------------

(vl-load-com)

(defun c:CopyText2ClipBoard ( / en tx html) ; Copy Text To Clipboard
  
  (and (setq en (ssget '((0 . "*TEXT"))))
       (setq en (ssname en 0))
       (setq en (vlax-ename-&amp;gt;vla-object en))
       (vlax-property-available-p en 'textstring)
       (setq tx (vla-get-textstring en))
       (vlax-invoke (vlax-get (vlax-get (setq html (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'setData "Text" tx)
       (vlax-release-object html)
       )
  
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/community/screencast/4ad1689f-434f-4f6e-99f6-bf4cc6f3fb72" target="_blank"&gt;SCREENCAST&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:10:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511590#M112509</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-11-02T14:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511618#M112510</link>
      <description>&lt;P&gt;Well, my code was basically the same as&amp;nbsp;BeekeeCZ's, but I made a small modification to replace the \P with the right line break characters.&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:Test (/ T_Object T_HTMLObject)
   (if
      (and
         (setq T_Object (car (entsel "\nSelect text : ")))
         (vlax-property-available-p (setq T_Object (vlax-ename-&amp;gt;vla-object T_Object)) 'TextString)
      )
      (progn
         (vlax-invoke (vlax-get (vlax-get (setq T_HTMLObject (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'SetData "Text" (ReplaceText (vla-get-TextString T_Object) "\\P" "\r\n"))
         (vlax-release-object T_HTMLObject)
      )
   )
   (princ)
)

(defun ReplaceText (RT_Text RT_Old RT_New)
   (while
      (vl-string-search RT_Old RT_Text)
      (setq RT_Text (vl-string-subst RT_New RT_Old RT_Text))
   )
   RT_Text
)&lt;/PRE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&amp;nbsp;it depends what you have installed as default internet browser, so it is not always Internet Explorer.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511618#M112510</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-02T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511649#M112511</link>
      <description>&lt;P&gt;Do you need to Paste them into an existing Excel file, or can a routine create a new one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The latter would not be too difficult, with some breaking apart of the text content around the \P new-line triggers, and a (write-line) function for each piece.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511649#M112511</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-11-02T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511675#M112512</link>
      <description>&lt;P&gt;Yours still put /p and pasted to one line instead of each text item going into a separate cell.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:28:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511675#M112512</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511678#M112513</link>
      <description>&lt;P&gt;Yours also put /p and pasted to one line instead of each text item going into a separate cell.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:28:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511678#M112513</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511695#M112514</link>
      <description>&lt;P&gt;Always pasting into an existing excel that I have open to the side.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511695#M112514</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511702#M112515</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3144455"&gt;@DannyNL&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Well, my code was basically the same as&amp;nbsp;BeekeeCZ's, but I made a small modification to replace the \P with the right line break characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&amp;nbsp;it depends what you have installed as default internet browser, so it is not always Internet Explorer.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It has&amp;nbsp;&lt;EM&gt;nothing to do what you have installed as the default internet browser&lt;/EM&gt;.&amp;nbsp; Regardless of what browser&amp;nbsp;that is, it will still gobble up ~5 MB of process memory. The component being used is part of Internet Explorer, which isn't loaded under normal use of AutoCAD, with or without IE being the default browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are &lt;EM&gt;reasonable limits&lt;/EM&gt; to everything, including how far LISP hackers are willing to go, in terms of the price their hacks have on the end user's experience.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:41:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511702#M112515</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-11-02T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511712#M112516</link>
      <description>&lt;P&gt;Here is CZ's function, with an 'Unformat' utility added to it.&amp;nbsp; - Lanny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:CopyText2ClipBoard ( / Unformat en tx html) ; Copy Text To Clipboard

	(defun Unformat ( str AsMtext / _replace rx pair)  ;;;AsMtext arg:  T = mtext keep line breaks and tabs, 1 = make text single line
	    (defun _replace ( new old str )
	        (vlax-put-property rx 'pattern old)
	        (vlax-invoke rx 'replace str new)
	    )
	    (if (setq rx (vlax-get-or-create-object "VBScript.RegExp"))
	        (progn
	            (setq str
	                (vl-catch-all-apply
	                    (function
	                        (lambda ( )
	                            (vlax-put-property rx 'global     actrue)
	                            (vlax-put-property rx 'multiline  actrue)
	                            (vlax-put-property rx 'ignorecase acfalse) 
	                            (foreach pair
	                                (list
	                                    (cons "\032"    "\\\\\\\\")
	                                    ;(cons " "       "\\\\P|\\n|\\t")
	                                    (if (= AsMtext 1) (cons " "       "\\n")   (cons "\n"         "\\n"))
	                                    (if (= AsMtext 1) (cons " "       "\\t")   (cons "\t"         "\\t"))
	                                    (if (= AsMtext 1) (cons " "       "\\\\P") (cons "\n"         "\\\\P"))
	                                    (cons "$1"      "\\\\(\\\\[ACcFfHLlOopQTW])|\\\\[ACcFfHLlOopQTW][^\\\\;]*;|\\\\[ACcFfHLlOopQTW]")
	                                    (cons "$1$2/$3" "([^\\\\])\\\\S([^;]*)[/#\\^]([^;]*);")
	                                    (cons "$1$2"    "\\\\(\\\\S)|[\\\\](})|}")
	                                    (cons "$1"      "[\\\\]({)|{")
	                                    (cons "%"       "%%%")
	                                    (cons (chr 176) "%%d")
	                                    (cons (chr 176) "%%D")
	                                    (cons (chr 177) "%%p")
	                                    (cons (chr 177) "%%P")
	                                    (cons (chr 216) "%%c")
	                                    (cons (chr 216) "%%C")
	                                    (cons ""        "%%o")
	                                    (cons ""        "%%O")
	                                    (cons ""        "%%u")
	                                    (cons ""        "%%U")            
	                                )
	                                (if pair (setq str (_replace (car pair) (cdr pair) str)))
	              ;(print (list "str" str))
	                            )
	                            (if AsMtext
	                                (_replace "\\\\" "\032" (_replace "\\$1$2$3" "(\\\\[ACcFfHLlOoPpQSTW])|({)|(})" str))
	                                (_replace "\\\\" "\032" str)
	                            )
	                        )
	                    )
	                )
	            )
	            (vlax-release-object rx)
	            (if (null (vl-catch-all-error-p str))
	                str
	            )
	        )
	    )
	)
  
  (and (setq en (ssget ":S" '((0 . "*TEXT"))))
       (setq en (ssname en 0))
       (setq en (vlax-ename-&amp;gt;vla-object en))
       (vlax-property-available-p en 'textstring)
       (setq tx (vla-get-textstring en))
       (setq tx (Unformat tx T))
       (vlax-invoke (vlax-get (vlax-get (setq html (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'setData "Text" tx)
       (vlax-release-object html)
       )
  
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:40:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511712#M112516</guid>
      <dc:creator>lando7189</dc:creator>
      <dc:date>2017-11-02T14:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511724#M112517</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3144455"&gt;@DannyNL&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;I made a small modification to replace the \P with the right line break characters. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I do find it curious that if I make a piece of Mtext with Enters for separate lines, and the text content of it &lt;EM&gt;shows the \\P line breaks&lt;/EM&gt;, when I Copy that content out as described in Post 1 and Paste it into an Excel workbook, it works as the OP desires -- the pieces go in cells each below the previous piece, not in one cell&amp;nbsp;including \\P characters that don't operate as line breaks.&amp;nbsp; How the \\P gets converted into the "right" line-break characters for Excel in the Windows-Copy/Paste process, but &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; in various transfer approaches suggested, I couldn't say.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:42:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511724#M112517</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-11-02T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511767#M112518</link>
      <description>&lt;P&gt;DannyNL, I apologize, yours did work right!! Sorry, I had too many samples on my desk and I loaded the wrong one.&amp;nbsp; Winner winner chicken dinner!!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:46:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511767#M112518</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511775#M112519</link>
      <description>&lt;P&gt;Yours works too Lando!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511775#M112519</guid>
      <dc:creator>mpa-la</dc:creator>
      <dc:date>2017-11-02T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511812#M112520</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4591287"&gt;@Activist_Investor&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;It has&amp;nbsp;&lt;EM&gt;nothing to do what you have installed as the default internet browser&lt;/EM&gt;.&amp;nbsp; Regardless of what browser&amp;nbsp;that is, it will still gobble up ~5 MB of process memory. The component being used is part of Internet Explorer, which isn't loaded under normal use of AutoCAD, with or without IE being the default browser.&lt;/P&gt;&lt;P&gt;There are &lt;EM&gt;reasonable limits&lt;/EM&gt; to everything, including how far LISP hackers are willing to go, in terms of the price their hacks have on the end user's experience.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And what if Internet Explorer isn't installed at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But on the other hand I don't really care. Just launching AutoCAD 2014 without any drawing open yet will almost consume 200MB of memory, so I don't really care for the additional 5MB.&lt;/P&gt;&lt;P&gt;And I also find it hard to believe that it is 5MB, since when looking at the used memory resources it barely shows any difference on my system.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:55:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511812#M112520</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-02T14:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511814#M112521</link>
      <description>&lt;P&gt;Good to hear and glad I could help&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:56:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7511814#M112521</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-02T14:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7512266#M112522</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3144455"&gt;@DannyNL&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And what if Internet Explorer isn't installed at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But on the other hand I don't really care. Just launching AutoCAD 2014 without any drawing open yet will almost consume 200MB of memory, so I don't really care for the additional 5MB.&lt;/P&gt;&lt;P&gt;And I also find it hard to believe that it is 5MB, since when looking at the used memory resources it barely shows any difference on my system.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The part of Internet Explorer that's being used must be installed, because Windows depends on it (it is used by every File Open/Save dialog in Windows), so the question is entirely moot, as the component involved is technically part of Windows, not Internet Explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Insofar as whether you care about the extra 5 MB of baggage really has more to do with who you are writing code for, and/or who you have to answer to. If you're writing code for your own personal use, there's nothing more to say about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to write code for paying customers that expect me to use the right tools for the job, and not impose a significant penalty on them only because I don't know how to use the right tools for the job. So, as long as you only have to answer yourself, or to noobs&amp;nbsp;who don't understand the implications of hacks like this one, you're all set to go.&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:37:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7512266#M112522</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-11-02T16:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to copy mtext to clipboard in one step</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7514139#M112523</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3144455"&gt;@DannyNL&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;....&amp;nbsp;I made a small modification to replace the \P with the right line break characters. ....&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I do find it curious that if I make a piece of Mtext with Enters for separate lines, and the text content of it &lt;EM&gt;shows the \\P line breaks&lt;/EM&gt;, when I Copy that content out as described in Post 1 and Paste it into an Excel workbook, it works as the OP desires -- the pieces go in cells each below the previous piece, not in one cell&amp;nbsp;including \\P characters that don't operate as line breaks.&amp;nbsp; How the \\P gets converted into the "right" line-break characters for Excel in the Windows-Copy/Paste process, but &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; in various transfer approaches suggested, I couldn't say.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I don't know either why it happens. Seems that copy to clipboard in AutoCAD does more than just copy the contents but also does some formatting, something that doesn't happen when you just extract the value with code.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 07:09:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-copy-mtext-to-clipboard-in-one-step/m-p/7514139#M112523</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-03T07:09:29Z</dc:date>
    </item>
  </channel>
</rss>

