<?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: AutoCAD JavaScript API not working in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6919720#M123255</link>
    <description>&lt;P&gt;I had some issues get the AutoCAD examples to load as well. What solve them for me is &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/javascript-api-for-autocad-give-beginners-a-rough-start/m-p/6918572" target="_blank"&gt;this forum post&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What got it working for me is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) If you using the webload command to add the palette via javascript, add the palette with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Acad.Application.addPalette&lt;/PRE&gt;&lt;P&gt;NOT with&lt;/P&gt;&lt;PRE&gt;Acad.Application.activeDocument.addPalette // addPalette is not defined for activeDocument&lt;/PRE&gt;&lt;P&gt;If you load add the palette with .NET then this shouldn't be an issue. However, loading with javascript avoids the hassle of creating a .NET program for AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I downloaded the Autodesk.AutoCAD.js api from &lt;A href="http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js" target="_blank"&gt;http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and replace all instances of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;promise.success(JSON.parse(resObj.retValue));&lt;/PRE&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;promise.success(resObj.retValue);&lt;/PRE&gt;&lt;P&gt;This is a bug in the javascript API. resObj is the result of a call to JSON.parse, and thus is already parsed. It is not necessary for them to be parsing resObj.retValue, since that was parsed in the original call to JSON.parse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I did the replacement, I reference my local &lt;EM&gt;fixed&lt;/EM&gt; copy of the Autodesk.AutoCD.js file instead of the hosted one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2017 19:18:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-03T19:18:43Z</dc:date>
    <item>
      <title>AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6895507#M123251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried now for quite some days to load a JavaScript into AutoCAD 2016, by following this Tutorial: &lt;A href="https://df-prod.autocad360.com/jsapi/v3/GettingStart/index.html?url=files/tutorial_palette_wrkflw.htm,topicNumber=d30e545" target="_blank"&gt;https://df-prod.autocad360.com/jsapi/v3/GettingStart/index.html?url=files/tutorial_palette_wrkflw.htm,topicNumber=d30e545&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'm able to load the html file into AutoCAD, but I cannot get any function run. The documentation on that is extremely poor, which makes it very rough for beginners to drop in. I had to change the javascript source file into src="&lt;A href="http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js" target="_blank"&gt;http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;at least to be able to execute any of the commands.&lt;/P&gt;&lt;P&gt;But nevertheless in this example the data of the added points are not passed back from the AutoCAC Window to the html. There is actually no interaction possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea how I could proceed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 13:56:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6895507#M123251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-22T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6898724#M123252</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get some help from this link:&amp;nbsp;&lt;A href="http://through-the-interface.typepad.com/through_the_interface/javascript/" target="_self"&gt;AutoCAD JavaScript&lt;/A&gt;&amp;nbsp;, Kean Walmsley has some pretty examples of that API in his blog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gaston Nunez&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:47:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6898724#M123252</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2017-02-23T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6900670#M123253</link>
      <description>&lt;P&gt;Thank you very much, I know Kean Walmsley's blog. However, also there I can't find any solution for my issue.&lt;/P&gt;&lt;P&gt;Maybe I need to get back to AutoCAD 2014... **** slowly I start to remember why I actually didn't use AutoCAD for more than 4 years...&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 09:16:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6900670#M123253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-24T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6901325#M123254</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know much about that API, and I'm not sure if it's a complete and mature development. Do you really need that API for your problem or use case? .NET could be more productive, and there are lots of good examples, and people here in this group with very good knowledge of that API that can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gaston Nunez.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:06:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6901325#M123254</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2017-02-24T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6919720#M123255</link>
      <description>&lt;P&gt;I had some issues get the AutoCAD examples to load as well. What solve them for me is &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/javascript-api-for-autocad-give-beginners-a-rough-start/m-p/6918572" target="_blank"&gt;this forum post&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What got it working for me is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) If you using the webload command to add the palette via javascript, add the palette with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Acad.Application.addPalette&lt;/PRE&gt;&lt;P&gt;NOT with&lt;/P&gt;&lt;PRE&gt;Acad.Application.activeDocument.addPalette // addPalette is not defined for activeDocument&lt;/PRE&gt;&lt;P&gt;If you load add the palette with .NET then this shouldn't be an issue. However, loading with javascript avoids the hassle of creating a .NET program for AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I downloaded the Autodesk.AutoCAD.js api from &lt;A href="http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js" target="_blank"&gt;http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and replace all instances of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;promise.success(JSON.parse(resObj.retValue));&lt;/PRE&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;promise.success(resObj.retValue);&lt;/PRE&gt;&lt;P&gt;This is a bug in the javascript API. resObj is the result of a call to JSON.parse, and thus is already parsed. It is not necessary for them to be parsing resObj.retValue, since that was parsed in the original call to JSON.parse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I did the replacement, I reference my local &lt;EM&gt;fixed&lt;/EM&gt; copy of the Autodesk.AutoCD.js file instead of the hosted one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 19:18:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/6919720#M123255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-03T19:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9615120#M123256</link>
      <description>&lt;P&gt;I have just installed Autocad 2021 and the javascript API stopped working (the js code with html palettes in Autcad 2018 were working fine) . The debug console says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.AutoCAD.js:6012 Uncaught ReferenceError: exec is not defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;line 6012 is: var jsonStr = exec(JSON.stringify({...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that AcWebBrowser.exe was replaced for a newer version in the Autocad 2021 release. Is there any workaround so that we can keep using the javascript API in Autocad 2021 with html palettes?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 17:49:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9615120#M123256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T17:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9615238#M123257</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1872583"&gt;@lena.talkhina&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can we voice our opinion to Autodesk about bringing back support for Javascript API?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 18:52:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9615238#M123257</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2020-07-02T18:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9616184#M123258</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt; !&lt;/P&gt;
&lt;P&gt;Let me check internally which options we have and will be back then&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9616184#M123258</guid>
      <dc:creator>lena.talkhina</dc:creator>
      <dc:date>2020-07-03T09:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9621939#M123259</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question here in the thread initiated an additional investigation internally at Autodesk.&lt;/P&gt;
&lt;P&gt;I will be back with the answer as soon as it finished.&lt;/P&gt;
&lt;P&gt;Thank you for the patience.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 13:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9621939#M123259</guid>
      <dc:creator>lena.talkhina</dc:creator>
      <dc:date>2020-07-07T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9698242#M123260</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1872583"&gt;@lena.talkhina&lt;/a&gt;&amp;nbsp; any update?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 18:57:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9698242#M123260</guid>
      <dc:creator>gotMorris</dc:creator>
      <dc:date>2020-08-18T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9699770#M123261</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1664614"&gt;@gotMorris&lt;/a&gt; as far as I informed the case is still under investigation. Sorry you have to wait so long, I'll take check again with our technical specialists if there any existing answer.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:45:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9699770#M123261</guid>
      <dc:creator>lena.talkhina</dc:creator>
      <dc:date>2020-08-19T13:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9712426#M123262</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;
&lt;P&gt;I am sorry all of you have to wait for the solution.&lt;/P&gt;
&lt;P&gt;We confirm that bug is existing and Development team will research the issue. Keep an eye on posts here for updates.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 09:30:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9712426#M123262</guid>
      <dc:creator>lena.talkhina</dc:creator>
      <dc:date>2020-08-26T09:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9850605#M123263</link>
      <description>&lt;P&gt;Hi, what is the latest status on this issue? Has it been fixed?&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;Joao&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:11:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9850605#M123263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-06T15:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9958942#M123264</link>
      <description>&lt;P&gt;I found that the exec() function issue happens because it was actually removed, as confirmed by the Javascript developper guide below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2021/ENU/?guid=adsk_jsdev_autocad_javascript_api_about" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/OARX/2021/ENU/?guid=adsk_jsdev_autocad_javascript_api_about&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, the&amp;nbsp;&lt;SPAN&gt;acedInvokeAsync() C++ function is not working. It does return eOk, but the corresponding JavaScript function that was declared with&amp;nbsp;registerCallback() is never executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this a known issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Joao&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9958942#M123264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-23T18:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9959143#M123265</link>
      <description>&lt;P&gt;Just a correction: the C++ function that is not working is acjsInvokeAsync().&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 20:50:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9959143#M123265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-23T20:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9975891#M123266</link>
      <description>&lt;P&gt;To get JavaScript working inside AutoCAD, we’ve integrated the open source Chromium component into the product. This gives us the all-important V8 environment for executing JavaScript as well as a WebKit-based browser for rendering HTML content. You may have heard that Google is forking WebKit to continue development on their Blink rendering engine. This shouldn’t change anything for us, moving forwards: we may well choose to – at some point – move to a newer version of Chromium, and it’ll happen to be based on Blink. &lt;A href="https://forpc.onl/snaptube-for-pc/" target="_blank"&gt;https://forpc.onl/snaptube-for-pc&lt;/A&gt; &lt;A href="https://jfi.cam/jiofilocalhtml/" target="_blank"&gt;jiofilocalhtml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 08:09:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/9975891#M123266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-04T08:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10076596#M123267</link>
      <description>&lt;P&gt;when I try something like Acad.Editor.executeCommand('CIRCLE')i am getting that Uncaught (in promise) ReferenceError: exec is not definederror. I found this on AutoCAD 2021 help but i don't understand how to use it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;exec&lt;SPAN&gt;&amp;nbsp;function has been deprecated from the API and synchronous calls from the JavaScript API are no longer supported. Use the&amp;nbsp;&lt;/SPAN&gt;execAsync()&lt;SPAN&gt;&amp;nbsp;function for asynchronous calls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2021/ENU/?guid=adsk_jsdev_autocad_javascript_api_about" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/OARX/2021/ENU/?guid=adsk_jsdev_autocad_javascript_api_about&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 18:49:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10076596#M123267</guid>
      <dc:creator>d3nis.code</dc:creator>
      <dc:date>2021-02-11T18:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10076723#M123268</link>
      <description>&lt;P&gt;The problem is that the code inside the JavaScript API (v3) found here: &lt;A href="https://df-prod.autocad360.com/jsapi/v3/Autodesk.AutoCAD.js," target="_blank"&gt;https://df-prod.autocad360.com/jsapi/v3/Autodesk.AutoCAD.js,&lt;/A&gt;&amp;nbsp;still makes use of the exec function, and since the exec function has been deprecated in version 2021 of Autocad, the API will not work properly in this version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk needs to release a new API version (v4) that does not make use of the exec function inside the code, in order to work with the JS API and Autocad 2021.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 19:41:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10076723#M123268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-11T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10355718#M123269</link>
      <description>&lt;P&gt;WHERE NEW STATUS ABOUT IT ?!?!??!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10355718#M123269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD JavaScript API not working</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10358986#M123270</link>
      <description>&lt;P&gt;Hello @Anonymous !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to Autodesk Community. Great to see you here.&lt;BR /&gt;Thank you for bringing this topic up.&lt;/P&gt;
&lt;P&gt;Our teams are still working on the issue. We will inform you here when the solution is released.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 17:45:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-javascript-api-not-working/m-p/10358986#M123270</guid>
      <dc:creator>lena.talkhina</dc:creator>
      <dc:date>2021-06-02T17:45:37Z</dc:date>
    </item>
  </channel>
</rss>

