Autocad, Inventor API access with Clojure

705 views Asked by At

Has anybody had any experience accessing the Autocad or Inventor API with Clojure?

2

There are 2 answers

2
BillRobertson42 On BEST ANSWER

If you can access autocad through Java, then you can get to it from Clojure. I found this SO question on that matter. (http://stackoverflow.com/questions/856973/interfacing-autocad-with-java) Basically they've built a JNI bridge to the autocad API. Once you do that then you can access that through Clojure. It sounds like a non-trivial undertaking though to say the least.

I'm pretty old, and the last time I checked (cough 20+ years ago cough), Autocad was extensible via Autolisp. If that's still true, then would you really want to bolt on Clojure? Just curious.

1
Aleš Kotnik On

As far as I know, AutoDesk exposes API for their products in .net environment. There is a paralel clojure implementation in Microsoft clr (.net environmet).

https://github.com/richhickey/clojure-clr

I think this would be a better way to aproach Autocad Scripting.