<?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: Dimaligned command produces &amp;quot;no function definition: nil&amp;quot; error upon completion in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696611#M15478</link>
    <description>&lt;P&gt;I just tried finishing the line with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so that it looks like :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "dimaligned" (car (cdr (nth 0 actMlist))) (car (cdr (nth 1 actMlist))) "t" (strcat "RISE: " (rtos rise 2 2) "' \n" "RUN: " (rtos run 2 4) "' \n SLOPE: " slope "%") (car (cdr (nth 0 actMlist))) `"")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when it finishes executing that line, it tries to re-run the function that I'm currently in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify, I type "ds1" to start the command, it runs until the error, and then it tried to run "ds1" again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a picture of the error log,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 551px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1347545i418188F54AAC8AA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 12:56:33 GMT</pubDate>
    <dc:creator>DerekX9SQ2</dc:creator>
    <dc:date>2024-04-09T12:56:33Z</dc:date>
    <item>
      <title>Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12695168#M15475</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written an AutoLISP script that helps me with some of my day-to-day activities. I'm currently running into a problem while trying to create DIMALIGNED objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "dimaligned" (car (cdr (nth 0 actMlist))) (car (cdr (nth 1 actMlist))) "t" (strcat "RISE: " (rtos rise 2 2) "' \n" "RUN: " (rtos run 2 4) "' \n SLOPE: " slope "%") (car (cdr (nth 0 actMlist))))&lt;/LI-CODE&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;This line executes with no problems. It creates an Aligned Dimension, changes the text as desired, and places it where I want it. However, no matter what code I put after this line, it tries to execute it as a function. I've tried replacing the last point with a pause and finishing the command with ("") at the end and&amp;nbsp; (command) on the next line to no avail. Any help here would be great!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a screenshot. I'll be happy to provide more information if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1.jpg" style="width: 922px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1347254iB1DADC23657889F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 20:36:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12695168#M15475</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-08T20:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12695704#M15476</link>
      <description>&lt;P&gt;I remember&amp;nbsp; "exit" not "" I seem to remember had to do with some code related to dimensions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "DIM" "align" pt1 pt4 pt3 "" "exit")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 04:40:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12695704#M15476</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-09T04:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696519#M15477</link>
      <description>&lt;P&gt;When I tried exit it said:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "dimaligned" (getpoint)(getpoint)(getpoint) "_exit")

Command: exit Unknown command "EXIT".  Press F1 for help.
Command: nil&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 12:23:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696519#M15477</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-09T12:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696611#M15478</link>
      <description>&lt;P&gt;I just tried finishing the line with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so that it looks like :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "dimaligned" (car (cdr (nth 0 actMlist))) (car (cdr (nth 1 actMlist))) "t" (strcat "RISE: " (rtos rise 2 2) "' \n" "RUN: " (rtos run 2 4) "' \n SLOPE: " slope "%") (car (cdr (nth 0 actMlist))) `"")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when it finishes executing that line, it tries to re-run the function that I'm currently in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify, I type "ds1" to start the command, it runs until the error, and then it tried to run "ds1" again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a picture of the error log,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 551px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1347545i418188F54AAC8AA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 12:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696611#M15478</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-09T12:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696629#M15479</link>
      <description>You can't assign EXIT. It's already an autocad default.</description>
      <pubDate>Tue, 09 Apr 2024 13:02:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696629#M15479</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2024-04-09T13:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696636#M15480</link>
      <description>&lt;P&gt;Why not just:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:MyDimAligned ()
  (setq actMlist '((1 2) (3 4))) ; Replace with your actual point coordinates
  (setq rise 5.67) ; Replace with your actual rise value
  (setq run 3.45) ; Replace with your actual run value
  (setq slope 12.34) ; Replace with your actual slope value

  (setq output-string
        (strcat
         "RISE: " (rtos rise 2 2) "'\n"
         "RUN: " (rtos run 2 4) "'\n"
         "SLOPE: " (rtos slope 2 2) "%"))

  (princ output-string)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:03:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696636#M15480</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2024-04-09T13:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696677#M15481</link>
      <description>&lt;P&gt;I want to use a dimaligned because it's a standard I'm tied to with my employer. At this point I'm honestly just really confused at what's happening to throw this error. It seems like the autoLISP interpreter doesn't exit the dimaligned command properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Making it even more perplexing, it will execute lines of code AFTER the dimaligend command UNTIL it exits the current function, here's what I mean:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun riseRunSlope ()
	(setq rise (abs (- (car (nth 0 actMlist)) (car (nth 1 actMlist)))))  
	(setq slope (rtos (* 100 (/ rise run)) 2 2))
	(setq plineFlag nil)
	(command "dimaligned" (car (cdr (nth 0 actMlist))) (car (cdr (nth 1 actMlist))) "t" (strcat "RISE: " (rtos rise 2 2) "' \n" "RUN: " (rtos run 2 4) "' \n SLOPE: " slope "%") (car (cdr (nth 0 actMlist))) `"")
	(princ "\n hi \n")
	(princ "\n WHY?!!?!?!?!?! \n")
	(princ (+ 10 15))
	(princ "Still executing")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 521px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1347558i629C957BFC754992/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that it runs all the way to the last print function and then tries to execute the text inside of the last print as a function.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696677#M15481</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-09T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696771#M15482</link>
      <description>Try (exit) to end function</description>
      <pubDate>Tue, 09 Apr 2024 13:51:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696771#M15482</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2024-04-09T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696799#M15483</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2701759"&gt;@wispoxy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Try (exit) to end function&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That appears to exit the entire LISP function and not just the function at the level the code is executed.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:09:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696799#M15483</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-09T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696877#M15484</link>
      <description>&lt;P&gt;You don't have assigned "run" variable...&lt;/P&gt;&lt;P&gt;Check your code before posting...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:31:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696877#M15484</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2024-04-09T14:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696895#M15485</link>
      <description>&lt;P&gt;I just posted a snippet as the code is 200+ lines. Here's the file&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:37:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696895#M15485</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-09T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696977#M15486</link>
      <description>&lt;P&gt;Please, have a look how I used DIMALIGNED command... It accepts 3 points and that's all - there should be no "" at the end or anywhere inbetween specified points...&lt;/P&gt;&lt;P&gt;Here is the link : &lt;A href="https://forums.augi.com/showthread.php?168619-Automatically-dimension-all-sides-and-angles-of-selected-polylines-polygons&amp;amp;highlight=dimaligned&amp;amp;p=#5" target="_blank" rel="noopener"&gt;https://forums.augi.com/showthread.php?168619-Automatically-dimension-all-sides-and-angles-of-selected-polylines-polygons&amp;amp;highlight=dimaligned&amp;amp;p=#5&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12696977#M15486</guid>
      <dc:creator>marko_ribar</dc:creator>
      <dc:date>2024-04-09T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12697700#M15487</link>
      <description>&lt;P&gt;Is there any chance you're working with a &lt;EM&gt;redefined&lt;/EM&gt; DIMALIGNED command?&amp;nbsp; What if you force use of the native command with the &lt;FONT color="#FF0000"&gt;period prefix&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(command "&lt;FONT size="5" color="#FF0000"&gt;.&lt;/FONT&gt;dimaligned" ...)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 20:53:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12697700#M15487</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-04-09T20:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12699694#M15488</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/940934"&gt;@marko_ribar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Please, have a look how I used DIMALIGNED command... It accepts 3 points and that's all - there should be no "" at the end or anywhere inbetween specified points...&lt;/P&gt;&lt;P&gt;Here is the link : &lt;A href="https://forums.augi.com/showthread.php?168619-Automatically-dimension-all-sides-and-angles-of-selected-polylines-polygons&amp;amp;highlight=dimaligned&amp;amp;p=#5" target="_blank" rel="noopener"&gt;https://forums.augi.com/showthread.php?168619-Automatically-dimension-all-sides-and-angles-of-selected-polylines-polygons&amp;amp;highlight=dimaligned&amp;amp;p=#5&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I got this to work! Thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:20:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12699694#M15488</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-10T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12699698#M15489</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Is there any chance you're working with a &lt;EM&gt;redefined&lt;/EM&gt; DIMALIGNED command?&amp;nbsp; What if you force use of the native command with the &lt;FONT color="#FF0000"&gt;period prefix&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(command "&lt;FONT size="5" color="#FF0000"&gt;.&lt;/FONT&gt;dimaligned" ...)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I wasn't able to get this to work. I fixed it by using (vla-adddimaligned)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:21:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12699698#M15489</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-10T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12700648#M15490</link>
      <description>&lt;P&gt;I tried this in my Bricscad V20 and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "dimaligned" (getpoint "\nP1")(getpoint "\nP2")(getpoint "\nP3") )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 00:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12700648#M15490</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-11T00:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12702297#M15492</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I found and fixed the error at the end of the day yesterday! I was calling (progn) inside an (if) condition. That's why it kept trying to execute the last line of the function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code looked like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(if (= a b)
     (
          (progn
               (vla-adddimaligned pt1 pt2 pt1)
               (setq var 1)
          )
     )
     ;else
     ()
)
​&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when it needed to look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(if (= a b)
     (progn
          (vla-adddimaligned pt1 pt2 pt1)
          (setq var 1)
     )
     ;else
     ()
)
​&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:50:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12702297#M15492</guid>
      <dc:creator>DerekX9SQ2</dc:creator>
      <dc:date>2024-04-11T15:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dimaligned command produces "no function definition: nil" error upon completion</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12703340#M15493</link>
      <description>&lt;P&gt;You don't&amp;nbsp;need a else. Sometimes I add an else or true false so can see what has happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(if (= a b)
     (progn
          (vla-adddimaligned pt1 pt2 pt1)
          (setq var 1)
      )
)


(if (= a b)
     (progn
          (vla-adddimaligned pt1 pt2 pt1)
          (setq var 1)
     )
     (princ "\nnot =")
)&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 01:04:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimaligned-command-produces-quot-no-function-definition-nil-quot/m-p/12703340#M15493</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-12T01:04:25Z</dc:date>
    </item>
  </channel>
</rss>

