<?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: error: no function definition: MAKE-ARRAY in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7897055#M106707</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;setf, aref, make-array are Common LISP built function which do not exist in AutoLISP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have some help learning Common LISP you should search for another forum, this one is dedicated to AutoLISP, a LISP dialect specific to AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to learn AutoLISP, you're in the right place. You can start from &lt;A href="http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-265AADB3-FB89-4D34-AA9D-6ADF70FF7D4B" target="_blank"&gt;this&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 15:10:57 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2018-03-30T15:10:57Z</dc:date>
    <item>
      <title>error: no function definition: MAKE-ARRAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7896886#M106704</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to AutoLisp and still trying to learn how it works. I was writing a script that needed inputs into arrays for it to function properly but I keep getting this message when I try to execute the functions "error: no function definition: MAKE-ARRAY". Is there a different way of defining an array?&lt;BR /&gt;&lt;BR /&gt;I know the script below is incomplete but I like to test the code as I'm writing it to avoid tedious debugging later on. I will be&amp;nbsp;doing calculations involving the elements contained in the arrays after I get past this error.&lt;BR /&gt;&lt;BR /&gt;P.S. I started using Autolisp about a week ago so please excuse any other errors I might've made in the script, I'm still learning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun platformLoading()


  (setq numOPL (getint "Enter number of platforms: "))
  (setq n 0)
  (setf PlArray(make-array '(numOPL)))
  (setf xCenterArray(make-array '(numOPL)))
  (setf yCenterArray(make-array '(numOPL)))
  (setf mofPlArray(make-array '(numOPL)))

  (while (&amp;gt;= numOPL 1)
    (setf (aref PlArray n) (getint "Enter length of Platform: "))

    (setf (aref xCenterArray n) (getpoint "Select x-center for Platform"))
    (setf (aref yCenterArray n) (getpoint "Select y-center for Platform"))
    (setf (aref mofPlArray n) (getint "Enter mass for Platform: "))

    (setq nOPL (1- numOPL))
    (setq n (1+ n))
  )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 13:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7896886#M106704</guid>
      <dc:creator>asad.mahmood17</dc:creator>
      <dc:date>2018-03-30T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: error: no function definition: MAKE-ARRAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7896901#M106705</link>
      <description>&lt;P&gt;You're calling for several routines that must be custom-defined -- not just (make-array) but also (setf) and (aref). &amp;nbsp;None of those is an AutoLisp function. &amp;nbsp;Do you have the code that defines them in something that you can either include in this routine or have loaded by it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[And that's not a "script," by the way -- the word Script has a specific, &lt;EM&gt;and different&lt;/EM&gt;, meaning in AutoCAD.]&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 14:03:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7896901#M106705</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-03-30T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: error: no function definition: MAKE-ARRAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7896962#M106706</link>
      <description>&lt;P&gt;Thank you for the quick reply. I wasn't aware I have to define these functions first. I've used Java before and it had built in array functions so I assumed it would be similar in AutoLisp. I looked up a similar code online and got some of the code from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I define these functions so I can easily assign values to the array and retrieve them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thank you for pointing out my mistake about using "script" in the original post.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 14:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7896962#M106706</guid>
      <dc:creator>asad.mahmood17</dc:creator>
      <dc:date>2018-03-30T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: error: no function definition: MAKE-ARRAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7897055#M106707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;setf, aref, make-array are Common LISP built function which do not exist in AutoLISP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have some help learning Common LISP you should search for another forum, this one is dedicated to AutoLISP, a LISP dialect specific to AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to learn AutoLISP, you're in the right place. You can start from &lt;A href="http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-265AADB3-FB89-4D34-AA9D-6ADF70FF7D4B" target="_blank"&gt;this&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 15:10:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7897055#M106707</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-03-30T15:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: error: no function definition: MAKE-ARRAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7897063#M106708</link>
      <description>&lt;P&gt;Ohhh, that explains why i found it in other codes. I'm only interested in AutoLisp but I couldn't find any good tutorials so I've just been looking around for stuff I actually need. Any idea how I can achieve this using lists then? Like make a list that has number of elements equal to what the user specifies and how I can access and write into list?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't have to write out the code for me. If you can redirect me to a good resource for learning AutoLisp I would be happy with that as well since I'm really new to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/109424"&gt;@_gile&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;setf, aref, make-array are Common LISP built function which do not exist in AutoLISP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to have some help learning Common LISP you should search for another forum, this one is dedicated to AutoLISP, a LISP dialect specific to AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to learn AutoLISP, you're in the right place. You can start from &lt;A href="http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-265AADB3-FB89-4D34-AA9D-6ADF70FF7D4B" target="_blank"&gt;this&lt;/A&gt;.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 15:12:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7897063#M106708</guid>
      <dc:creator>asad.mahmood17</dc:creator>
      <dc:date>2018-03-30T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: error: no function definition: MAKE-ARRAY</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7900934#M106709</link>
      <description>&lt;P&gt;I managed to use lists to store the values instead of defining an array function. Thanks for the help guys.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 13:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-no-function-definition-make-array/m-p/7900934#M106709</guid>
      <dc:creator>asad.mahmood17</dc:creator>
      <dc:date>2018-04-02T13:19:23Z</dc:date>
    </item>
  </channel>
</rss>

