<?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 help in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958071#M85637</link>
    <description>&lt;P&gt;I think that second one was a remainder from a previously removed piece of code. I removed it and I also removed the -dwgunit code and I am still having the same "hanging" problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 16:07:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-09T16:07:12Z</dc:date>
    <item>
      <title>LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8954399#M85631</link>
      <description>&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am creating a standards LISP routine to load when opening a drawing. I added a (defun c:___) to it to make screecasting easier. The problem is it is pausing at the end and requiring me to left click out of it after it is run. Looking for a fix for it to complete smoothly. Is there some code I need to put at the end of it to close out the code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here is the code so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;(defun c:stdtest ()
  
  (vl-load-com) (vlax-for pc (vla-get-plotconfigurations (vla-get-ActiveDocument (vlax-get-acad-object))) (vla-delete pc) )
  
  (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGEHALF")
  (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGEFULL")
  (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGECOLOR")
  (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGEPDF")
   (c:SetNamePageSetupAllLayouts "BRIDGEHALF" T)

  (command "dimlayer" "PEN5")												;;;Sets dimension layer to PEN5

(setvar "dimassoc" 0)													;;;Turns off dimension associativity

(command "._insert" "GENTITLE=R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\GENTITLE.dwg")			;;;Redefine GENTITLE block
(command)

(command "._insert" "MISCTITLE=R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\MISCTITLE.dwg")			;;;Redefine MISCTITLE block
(command)

(command "._insert" "SITETITLE=R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\SITETITLE.dwg")			;;;Redefine SITETITLE block
(command)

(command "._insert" "Standard_Styles=R:\\design\\Michael\\Blocks\\Standards\\Standard Styles.dwg" "0,0" "" "" "")	;;;Insert Standard Styles (Dimension styles, text styles, layers and linetypes)

(setvar "pdmode" 35)

(command "._-dwgunits" "2" "2" "4" "no" "no")

(prompt "\nStandards Loaded")
(princ)
  )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="screencast_placeholder"&gt;Screencast will be displayed here after you click Post.&lt;P class="screencast_id"&gt;5fea7ab8-9987-4c2d-b64a-68bbb5ed4e7c&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 00:13:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8954399#M85631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T00:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8956165#M85632</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you comment "-dwgunits" does it work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8956165#M85632</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-08-08T17:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8956255#M85633</link>
      <description>&lt;P&gt;Not an answer to your problem just an observation to simplify some of your code to redefine the blocks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;  (setq path "R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\")
  (foreach dwg '("GENTITLE" "MISCTITLE" "SITETITLE")
    (command "._insert" (strcat dwg "=" path dwg ".dwg") nil)
  )&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2019 18:35:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8956255#M85633</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-08-08T18:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8956612#M85634</link>
      <description>&lt;P&gt;If you type -dwgunits on the command line, you are asked 7 questions (my version 2012), therefore it requires a list of 7 inputs. Your list contains 5 inputs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "._-dwgunits" "2" "2" "4" "no" "no")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the lisp "hangs" maybe this is why. Perhaps you need to check how many inputs are required to complete the command on your system.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 21:49:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8956612#M85634</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-08-08T21:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8957424#M85635</link>
      <description>&lt;P&gt;Try with this Change (For AutoCAD 2017/2018/2019).......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "._-dwgunits" "2" "2" "4" "no" "no" &lt;FONT color="#0000FF"&gt;"no"&lt;/FONT&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what about the function .......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(c:SetNamePageSetupAllLayouts "BRIDGEHALF" T)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 11:29:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8957424#M85635</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2019-08-09T11:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958065#M85636</link>
      <description>&lt;P&gt;So that is another issue... -dwgunits is 5 inputs if no settings changed. If units did change, it adds:&amp;nbsp; "Scale objects in current drawing to reflect change in units? [Yes/No]"&lt;/P&gt;&lt;P&gt;So another problem is I don't know how to input "no" when it asks, and nothing when it doesn't.&lt;/P&gt;&lt;P&gt;Either way, I removed this code completely and I am still having problem I asked about originally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958065#M85636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958071#M85637</link>
      <description>&lt;P&gt;I think that second one was a remainder from a previously removed piece of code. I removed it and I also removed the -dwgunit code and I am still having the same "hanging" problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:07:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958071#M85637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T16:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958079#M85638</link>
      <description>&lt;P&gt;Oh great! Always nice to have unnecessarily complicated things simplified!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:13:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-help/m-p/8958079#M85638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T16:13:01Z</dc:date>
    </item>
  </channel>
</rss>

