<?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: AutoLisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039784#M8820</link>
    <description>&lt;P&gt;Below is the error I received when entering "&lt;SPAN&gt;zoomedwgdir: or "(zoomedwgdir)" in the command line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; error: no function definition: DIR&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 23:50:56 GMT</pubDate>
    <dc:creator>abel_henok</dc:creator>
    <dc:date>2024-09-23T23:50:56Z</dc:date>
    <item>
      <title>AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039151#M8813</link>
      <description>&lt;P&gt;I have two lisp files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) layfrzdwgdir&lt;/P&gt;&lt;P&gt;- This Lisp freezes specified layers throughout an entire set of drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please take a look at the layfrzdwgdir lisp file and create a separate lisp file that can UNfreeze specified layers throughout an entire set of drawings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) zoome&lt;/P&gt;&lt;P&gt;- This Lisp performs zoom extent within multiple viewports on a single drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please take a look at the zoome lisp and create a separate lisp that can perform the function throughout an entire set of drawings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you someone is able to help me reach a resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 18:14:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039151#M8813</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-23T18:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039188#M8814</link>
      <description>&lt;P&gt;(defun zoomedwgdir ()&lt;BR /&gt;(foreach dwgname (dir "*.dwg") ; Loop through drawing files&lt;BR /&gt;(command "open" dwgname) ; Open the current drawing&lt;BR /&gt;(c:zeavp) ; Call the existing zoom extents function&lt;BR /&gt;(command "save" "yes") ; Save the drawing&lt;BR /&gt;(command "quit")) ; Close the drawing&lt;BR /&gt;(princ "\nZoom extents completed for all drawings."))&lt;/P&gt;&lt;P&gt;(defun c:zeavp ( / c) ; Existing function from zoome.lsp (unchanged)&lt;BR /&gt;(setq c (getvar "CTAB"))&lt;BR /&gt;(foreach l (layoutlist)&lt;BR /&gt;(setvar "CTAB" l)&lt;BR /&gt;(c:zoome))&lt;BR /&gt;(setvar "CTAB" c)&lt;BR /&gt;(princ))&lt;/P&gt;&lt;P&gt;(princ "\nType zoomedwgdir or (zoomedwgdir) to run")&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 18:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039188#M8814</guid>
      <dc:creator>becca_chesmore</dc:creator>
      <dc:date>2024-09-23T18:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039508#M8815</link>
      <description>&lt;P&gt;for your&amp;nbsp;layfrzdwgdir.lsp to change to unfreeze then change this line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;:vlax-true ;; the value you want each listed layer to be set to&lt;/LI-CODE&gt;&lt;P&gt;to this line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;:vlax-false ;; the value you want each listed layer to be set to&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Sep 2024 21:11:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039508#M8815</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-23T21:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039685#M8816</link>
      <description>&lt;P&gt;This solution did not work. Please view the attached code per your recommendations and let me know if we can come up with a different solution. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 22:33:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039685#M8816</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-23T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039702#M8817</link>
      <description>&lt;P&gt;There was actually another location where &lt;STRONG&gt;:vlax-true&lt;/STRONG&gt; had to be replaced with &lt;STRONG&gt;:vlax-false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also you don't need to replace &lt;STRONG&gt;'freeze&lt;/STRONG&gt;&amp;nbsp;with &lt;STRONG&gt;'unfreeze&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use the attached revised code.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 22:49:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039702#M8817</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-23T22:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039735#M8818</link>
      <description>&lt;P&gt;Paul, that worked! Thank you so much sir! Now, do you think we can customize the zoome lisp so that it applies to the entire set of drawings in a directory? (similar to the layunfrzdwgdir lisp) Please let me know. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 23:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039735#M8818</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-23T23:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039768#M8819</link>
      <description>&lt;P&gt;Does&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16139002"&gt;@becca_chesmore&lt;/a&gt;&amp;nbsp;solution not work for you?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 23:41:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039768#M8819</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-23T23:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039784#M8820</link>
      <description>&lt;P&gt;Below is the error I received when entering "&lt;SPAN&gt;zoomedwgdir: or "(zoomedwgdir)" in the command line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; error: no function definition: DIR&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 23:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039784#M8820</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-23T23:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039787#M8821</link>
      <description>Below is the error I received when entering "zoomedwgdir: or "(zoomedwgdir)" in the command line:&lt;BR /&gt;&lt;BR /&gt;; error: no function definition: DIR</description>
      <pubDate>Mon, 23 Sep 2024 23:51:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039787#M8821</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-23T23:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039825#M8822</link>
      <description>&lt;P&gt;let's see if&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16139002"&gt;@becca_chesmore&lt;/a&gt;&amp;nbsp;can reply to that&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 00:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039825#M8822</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-24T00:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039835#M8823</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;I'm pretty new to Lisp and I thought that would work. Sorry, I couldn't be more help &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 00:21:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039835#M8823</guid>
      <dc:creator>becca_chesmore</dc:creator>
      <dc:date>2024-09-24T00:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039876#M8824</link>
      <description>No worries. Thank you for your effort.</description>
      <pubDate>Tue, 24 Sep 2024 00:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13039876#M8824</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-24T00:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13040160#M8825</link>
      <description>&lt;P&gt;Here's one method to run &lt;STRONG&gt;Zoome.lsp&lt;/STRONG&gt; on a set of dwgs in a folder:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.lee-mac.com/scriptwriter.html" target="_blank" rel="nofollow noopener noreferrer"&gt;Script Writer | Lee Mac Programming (lee-mac.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Download &amp;amp; install and then fill out the &lt;STRONG&gt;Script Line&lt;/STRONG&gt; on Lee Mac's program like this (assume your &lt;STRONG&gt;Zoome.lsp&lt;/STRONG&gt; is in a AutoCAD's File Support Search Path location):&lt;/P&gt;&lt;LI-CODE lang="general"&gt;_.Open *file* (load"zoome") ZoomE _.Qsave _.Close&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1727151732161.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1412927iFF6AABCB316CE991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1727151732161.png" alt="paullimapa_0-1727151732161.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 04:24:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13040160#M8825</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-24T04:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13040381#M8826</link>
      <description>&lt;P&gt;Here's another method to apply &lt;STRONG&gt;zoome.lsp&lt;/STRONG&gt; to all dwgs in a selected folder.&lt;/P&gt;&lt;P&gt;Save attached &lt;STRONG&gt;DwgAccPikScr.lsp&lt;/STRONG&gt; , &lt;STRONG&gt;Zoome.lsp&lt;/STRONG&gt; &amp;amp; unzip &lt;STRONG&gt;Zoome.scr&lt;/STRONG&gt; in a folder under one of&amp;nbsp;&lt;STRONG&gt;AutoCAD&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;Options&amp;gt;&lt;/STRONG&gt; &lt;STRONG&gt;Support File Search Path&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Trusted Locations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1727160265788.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1412982i58D0A71978A618C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1727160265788.png" alt="paullimapa_0-1727160265788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then at&amp;nbsp;&lt;STRONG&gt;AutoCAD&lt;/STRONG&gt;&amp;nbsp;command prompt load&amp;nbsp;&lt;STRONG&gt;DwgAccPikScr.lsp &lt;/STRONG&gt;by typing following&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(load"DwgAccPikScr")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then run by entering at command prompt:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DwgAccPikScr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Select the folder where the dwgs are and then select &lt;STRONG&gt;Zoome.scr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 06:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13040381#M8826</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-24T06:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13041368#M8827</link>
      <description>Hey Paul, I like your thought process.&lt;BR /&gt;&lt;BR /&gt;During testing, I realized there's an IT restriction on running script files in batch. Though, we have more flexibility with lisp files.&lt;BR /&gt;&lt;BR /&gt;The DWGACCPIKSCR is a lisp file but only allows the user to select a script file to run in a directory. Is there a way we can modify DWGACCPIKSCR to allow the user to select a script file?&lt;BR /&gt;&lt;BR /&gt;Please let me know.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Tue, 24 Sep 2024 14:04:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13041368#M8827</guid>
      <dc:creator>abel_henok</dc:creator>
      <dc:date>2024-09-24T14:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13041447#M8828</link>
      <description>&lt;P&gt;I’m surprised script files in a batch file is not allowed at your office. This is a major advantage that allows for automation without a need to open drawings in AutoCAD. Since&amp;nbsp;&lt;SPAN&gt;DWGACCPIKSCR lisp is purposely designed to take advantage of batch processing dwgs without opening them, then this method cannot be used in your office.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:38:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13041447#M8828</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-24T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13042360#M8829</link>
      <description>&lt;P&gt;Here's a modified version I call&amp;nbsp;&lt;STRONG&gt;DwgAccPikScrA.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This version does NOT create a batch file to apply the selected script file to all the dwgs in the selected folder.&lt;/P&gt;&lt;P&gt;But instead it runs the entire process within AutoCAD.&lt;/P&gt;&lt;P&gt;Let me know if this version bypasses the batch Script restrictions in your office.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 20:13:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp/m-p/13042360#M8829</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-24T20:13:34Z</dc:date>
    </item>
  </channel>
</rss>

