JS as additional language for ACad macroing etc

JS as additional language for ACad macroing etc

reymart.laranjo
Enthusiast Enthusiast
565 Views
4 Replies
Message 1 of 5

JS as additional language for ACad macroing etc

reymart.laranjo
Enthusiast
Enthusiast

Hi,

Is it possible to integrate JavaScript into AutoCAD? It's a versatile language with potential applications.

thank you and kind regards,

0 Likes
566 Views
4 Replies
Replies (4)
Message 2 of 5

norman.yuan
Mentor
Mentor

There has been JavaScript API for AutoCAD (since AutoCAD 2015?), and it is now in its version 4. You can find its documentation here:

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

 

However, when Autodesk released the JavaScrcipt API then, it probably aimed at preparing for moving AutoCAD to the web. In reality, AutoCAD still remains as one of the most local resource demanding desktop app so far and will be in that way for years to come, its JavaScript API most ends up collecting dust in its corner and rarely any CAD application developers want to waste time to try it. Even with current Autodesk's effort to provide web version of AutoCAD, with latest web technologies, they probably would not use the JavaScript API.

 

IMO, the AutoCAD's JavaScript API is basically useless, so far.

 

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 5

Ed__Jobe
Mentor
Mentor

In addition to what @norman.yuan said, if you are looking for a language other than C#, you might take a look at python. @daniel_cadext has developed a python wrapper for AutoCAD. Search the .NET forum for some links.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 4 of 5

reymart.laranjo
Enthusiast
Enthusiast
I just like JS due to i was a backend web developer who primarily uses JS as my main Lang. But i might stick to C# or VBA instead.

Thank you for your good insight!
0 Likes
Message 5 of 5

reymart.laranjo
Enthusiast
Enthusiast
Thanks for this i didn't know someone developed a wrapper so that others could use python.

Will look into it.
0 Likes