AutoCAD JavaScript API not working

AutoCAD JavaScript API not working

Anonymous
Not applicable
5,684 Views
24 Replies
Message 1 of 25

AutoCAD JavaScript API not working

Anonymous
Not applicable

Hi,

 

I tried now for quite some days to load a JavaScript into AutoCAD 2016, by following this Tutorial: https://df-prod.autocad360.com/jsapi/v3/GettingStart/index.html?url=files/tutorial_palette_wrkflw.ht...

 

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="http://app.autocad360.com/jsapi/v2/Autodesk.AutoCAD.js"

at least to be able to execute any of the commands.

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.

 

Does anyone have an idea how I could proceed?

 

Many thanks in advance

0 Likes
5,685 Views
24 Replies
Replies (24)
Message 21 of 25

d3nis.code
Observer
Observer

Any news on this? When new API is coming? is almost 2 years now since  this is not working 

0 Likes
Message 22 of 25

lena.talkhina
Alumni
Alumni

Hello @Anonymous !

 

The latest version of the documentation that applies to v3 can be found here:

https://help.autodesk.com/view/OARX/2021/ENU/?guid=adsk_jsdev_autocad_javascript_api_about

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

Message 23 of 25

sirmavid
Community Visitor
Community Visitor

Thanks for the useful answer, i was also searching for the same. get-vidmate.com instagram saver

0 Likes
Message 24 of 25

d3nis.code
Observer
Observer

Is there any news on this. Did Autodesk gave up on JavaScript API?

0 Likes
Message 25 of 25

CodeDing
Advisor
Advisor

@d3nis.code ,

 

They have made better strides to improve the API. See documentation here:

https://help.autodesk.com/view/OARX/2022/ENU/?guid=adsk_jsdev_autocad_javascript_api_about

 

I haven't used the API in a while, but I believe it's in good condition.

 

Best,

~DD

0 Likes