<?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: How to convert a code line to string and viceversa? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12948328#M10507</link>
    <description>&lt;P&gt;Can you explain more what the strings look like maybe want to use Set as well.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 01:34:52 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-08-09T01:34:52Z</dc:date>
    <item>
      <title>How to convert a code line to string and viceversa?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12946099#M10503</link>
      <description>&lt;P&gt;I'm trying to use a string as a code directly without any edition, like the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(   defun selection1 (x / )
 (setq item1      (anything); random command
        (setq item2 ( vl-catch-all-apply x))
item2
)

(defun c:doanything( / )
(selection1 "vl-catch-all-apply 'vla-add (list x y)") ;string to convert to code
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;... but I found zero results samples like this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How to convert a string to code and, if it's need, how to convert a code to string?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 05:58:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12946099#M10503</guid>
      <dc:creator>jtm2020hyo</dc:creator>
      <dc:date>2024-08-08T05:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a code line to string and viceversa?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12946123#M10504</link>
      <description>&lt;P&gt;Here's an example on how to convert a string into code entered and confirmed at the command line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Command: (setq aa "(setq b (1+ 2))")
"(setq b (1+ 2))"
command:(eval(read aa))
3
command: !b
3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 06:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12946123#M10504</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-08-08T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a code line to string and viceversa?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12946227#M10505</link>
      <description>&lt;P&gt;hey there,&lt;/P&gt;&lt;P&gt;try it that way&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun selection1 (x / )
 	(setq item1 (anything); random command
 	(setq item2 (vl-catch-all-error-p (eval (read x)))
	item2
)

(defun c:doanything( / )
	(selection1 "(vl-catch-all-apply 'vla-add (list x y))")
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Aug 2024 07:01:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12946227#M10505</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2024-08-08T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a code line to string and viceversa?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12948328#M10507</link>
      <description>&lt;P&gt;Can you explain more what the strings look like maybe want to use Set as well.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 01:34:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-convert-a-code-line-to-string-and-viceversa/m-p/12948328#M10507</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-08-09T01:34:52Z</dc:date>
    </item>
  </channel>
</rss>

