<?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 file does not work on 2022 Autocad in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697545#M35559</link>
    <description>&lt;P&gt;One way around the find dcl is to add the dcl code to your lisp, so it gets created as a temporary file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look&amp;nbsp;at this link&amp;nbsp;&lt;A href="https://www.cadtutor.net/forum/topic/66737-convert-dcl-file-to-lisp-file/" target="_blank" rel="noopener"&gt;❚❚ Convert dcl file to lisp file - AutoLISP, Visual LISP &amp;amp; DCL - AutoCAD Forums (cadtutor.net)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used it and found it very helpful.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Jan 2023 23:15:23 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2023-01-22T23:15:23Z</dc:date>
    <item>
      <title>Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697230#M35554</link>
      <description>&lt;P&gt;Hello, I was hoping someone could help me out. I just upgraded to 2022 Autocad from 2015. On the 2015 version I used a Lisp routine regularly. I tried to load it into 2022 and it gives an error: quit/abort message. I have loaded it into apploader and put it in the trusted folder locations. I have been researching for days on a possible solution and cant seem to figure it out. The command is: DVADDR and its supposed to open a dialog box to be able click on blocks to update the number sequence. I have attached the Lisp. Can someone please help?? Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 19:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697230#M35554</guid>
      <dc:creator>dentnd81</dc:creator>
      <dc:date>2023-01-22T19:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697245#M35555</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13404067"&gt;@dentnd81&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like your lisp is looking for a DCL file called "Increment". If that file cannot be found when the lisp is executed, then it will error out like you're describing. Do you have that file? Is it located in the same place as your lisp file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;.....
(defun c:devaddr (/ :dlgid :done :sel)

  (setq :dlgId (load_dialog "Increment.DCL"))
  (setq :done 3)

  (while (/= :done 0)
    
  	(if (not (new_dialog "increment" :dlgId))   
    		(exit)                                 
  	)
.....&lt;/LI-CODE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 19:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697245#M35555</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-01-22T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697258#M35556</link>
      <description>Thanks for the response! I did find the file named "Increment and it is a DCL file. Where do I need to put this file? Please forgive me as I am slowly learning about LISP routines.&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jan 2023 19:24:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697258#M35556</guid>
      <dc:creator>dentnd81</dc:creator>
      <dc:date>2023-01-22T19:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697276#M35557</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13404067"&gt;@dentnd81&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Please forgive me as I am slowly learning about LISP routines.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No worries! Welcome to the forums btw.&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/13404067"&gt;@dentnd81&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I did find the file named "Increment and it is a DCL file. Where do I need to put this file?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;We can see that the &lt;A href="https://help.autodesk.com/view/OARX/2022/ENU/?guid=GUID-B5E4E72B-BD59-4E5E-8FBF-345DFC45A7EC" target="_blank" rel="noopener"&gt;(load_dialog ...) function in the AutoLISP Reference documentation&lt;/A&gt; does the following:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Remarks
The load_dialog function searches for files according to the AutoCAD library search path.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...This means that it will search your Support File Search Paths listed here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 785px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1165657iC2541B4F360826C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So as long as the file resides in one of those locations, you should be good to go. If it causes you any heartaches, you may want to add the path to your "Trusted Locations" also. Be sure to restart AutoCAD if you update your paths, just for good measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 19:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697276#M35557</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-01-22T19:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697302#M35558</link>
      <description>I have the file in the loaded lisp file in the apploader and all those&lt;BR /&gt;files are in the trusted files. I restarted Autocad and it still does not&lt;BR /&gt;work. I have a few other lisp files that work on both the 2015 and 2022&lt;BR /&gt;version, it's just this one particular lisp that does not work, and of&lt;BR /&gt;course it's the one I need the most. Any other possible ideas? I really do&lt;BR /&gt;appreciate the help. Thanks&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jan 2023 20:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697302#M35558</guid>
      <dc:creator>dentnd81</dc:creator>
      <dc:date>2023-01-22T20:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697545#M35559</link>
      <description>&lt;P&gt;One way around the find dcl is to add the dcl code to your lisp, so it gets created as a temporary file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look&amp;nbsp;at this link&amp;nbsp;&lt;A href="https://www.cadtutor.net/forum/topic/66737-convert-dcl-file-to-lisp-file/" target="_blank" rel="noopener"&gt;❚❚ Convert dcl file to lisp file - AutoLISP, Visual LISP &amp;amp; DCL - AutoCAD Forums (cadtutor.net)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used it and found it very helpful.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 23:15:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11697545#M35559</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-01-22T23:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11699527#M35560</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13404067"&gt;@dentnd81&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be clear..&lt;/P&gt;&lt;P&gt;1) Are your "DevAddr.lsp" and "Increment.dcl" files located in the &lt;U&gt;same&lt;/U&gt; folder?&lt;/P&gt;&lt;P&gt;2) That folder path is showing inside of your "Support File Search Path" list?&lt;/P&gt;&lt;P&gt;3) You only need to APPLOAD the "DevAddr.lsp" file into the drawing you are currently working in, and in that same drawing you call the DEVADDR command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are performing all of those steps correctly, and it's still not working.. Run this code and lets confirm which files its finding:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:TEST ( / dPath iPath)
  (setq dPath (findfile "devaddr.lsp"))
  (setq iPath (findfile "Increment.dcl"))
  (alert
    (print
      (cond
        ((and dPath iPath) (strcat "\nBoth files found:\nLisp path &amp;gt;&amp;gt;&amp;gt; " dPath "\n\nDCL path &amp;gt;&amp;gt;&amp;gt; " iPath))
        (dPath (strcat "\nOnly Lisp file found:\nLisp path &amp;gt;&amp;gt;&amp;gt; " dPath))
        (iPath (strcat "\nOnly DCL file found:\nDCL path &amp;gt;&amp;gt;&amp;gt; " iPath))
        (t "\nNeither file was found...")
      );cond
    );print
  );alert
  (princ)
);defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 17:36:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11699527#M35560</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-01-23T17:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11699557#M35561</link>
      <description>That is what was missing, placing the folder in the support file list. It&lt;BR /&gt;works now!!! Thanks a ton I appreciate it!!&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2023 17:48:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11699557#M35561</guid>
      <dc:creator>dentnd81</dc:creator>
      <dc:date>2023-01-23T17:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11700635#M35562</link>
      <description>&lt;P&gt;It can be handy to have a folder like C:/mylispfiles, and save everything into it that you download from here, then you have a simple support path to add rather&amp;nbsp;than the complicated default ones.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 02:58:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/11700635#M35562</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-01-24T02:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/13441029#M35563</link>
      <description>&lt;P&gt;FYI - I had a similar issue and this was the only fix I found accept that my lisp file and my dcl file were in the same folder that was within the folder that I selected as my trusted folder.&amp;nbsp; The routine would not work until I took the dcl file up one folder level so that it was in the exact location as the "trusted folder".&amp;nbsp; I have no clue why that made the difference, but it works now! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 20:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/13441029#M35563</guid>
      <dc:creator>kbucknam</dc:creator>
      <dc:date>2025-04-23T20:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp file does not work on 2022 Autocad</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/13441106#M35564</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your&amp;nbsp; .dcl have to be in one of your support pathes, otherwise ACAD will not find them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For trusted pathes: The same,&lt;/P&gt;&lt;P&gt;but you can add a folder INCL. ALL SUBfolders as trusted path, by adding three dots at the end of the main path.&lt;/P&gt;&lt;P&gt;For example the whole D:\ drive:&lt;/P&gt;&lt;P&gt;D:\...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 20:55:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-file-does-not-work-on-2022-autocad/m-p/13441106#M35564</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2025-04-23T20:55:28Z</dc:date>
    </item>
  </channel>
</rss>

