<?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: I reqd. point of insertion and as well as undo command in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10828250#M51173</link>
    <description>&lt;P&gt;Yo, Beekee,&lt;/P&gt;
&lt;P&gt;Maybe I missed something.&amp;nbsp; Does he really want to Undo the previous command as an option in the current command?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 00:13:03 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2021-12-17T00:13:03Z</dc:date>
    <item>
      <title>I reqd. point of insertion and as well as undo command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10826647#M51171</link>
      <description>&lt;P&gt;I Don't know where I am wrong. with this program will continuously asking for point of block and If put it at wrong point then undo pressing will undone previous insert block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;(Defun c:afb(/ cccen)&lt;BR /&gt;(initget 128 "Undo U u")&lt;BR /&gt;(setq res (getpoint "\nGetPoint[Undo] &amp;lt;Cancel&amp;gt; :"))&lt;BR /&gt;(while&lt;BR /&gt;;(setq cccen (getpoint "\nCentre Point of Hole: ")))&lt;BR /&gt;(command "_-Insert" "AFB" res "1" "1" 0)&lt;BR /&gt;(cond ((= res "Undo") (command "_.UNDO" "1"))))&lt;BR /&gt;(setvar "cmdecho" 0)&lt;BR /&gt;;(command "_Circle" cccen "D" "17.5")&lt;BR /&gt;(setvar "cmdecho" 1)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avcinash&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10826647#M51171</guid>
      <dc:creator>avinash00002002</dc:creator>
      <dc:date>2021-12-16T09:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: I reqd. point of insertion and as well as undo command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10826740#M51172</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:AFB (/ res)

  (setvar 'cmdecho 0)
  
  (while (progn									; we need to wrap initget and getpoint
	   (initget 128 "Undo")							; this is not a test expression, we just need this placed prior to (getpoint)    ; "UndoL already covers "U" and "u"
	   (setq res (getpoint "\rSpecify insertion point or [Undo] &amp;lt;exit&amp;gt;: ")))  	; this is a real test expression for while
    (if (= res "Undo")
      (command "_.undo" 1)
      (command "_-insert" "AFB" "_s" 1 "_r" 0 "_non" res)))
  (setvar 'cmdecho 1)
  (princ)
)
&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Dec 2021 11:04:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10826740#M51172</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-12-16T11:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: I reqd. point of insertion and as well as undo command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10828250#M51173</link>
      <description>&lt;P&gt;Yo, Beekee,&lt;/P&gt;
&lt;P&gt;Maybe I missed something.&amp;nbsp; Does he really want to Undo the previous command as an option in the current command?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 00:13:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-reqd-point-of-insertion-and-as-well-as-undo-command/m-p/10828250#M51173</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-12-17T00:13:03Z</dc:date>
    </item>
  </channel>
</rss>

