使用 Clojure 访问 Autocad、Inventor API
有人有过使用 Clojure 访问 Autocad 或 Inventor API 的经验吗?
Has anybody had any experience accessing the Autocad or Inventor API with Clojure?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您可以通过 Java 访问 autocad,那么您也可以从 Clojure 访问它。我发现了这个关于此事的问题。 (http://stackoverflow.com/questions/856973/interface-autocad-with-java) 基本上他们已经构建了一个通往 autocad API 的 JNI 桥。一旦你这样做了,你就可以通过 Clojure 访问它。至少可以说,这听起来像是一项不平凡的任务。
我已经很老了,上次我检查时(咳 20 多年前咳),Autocad 可以通过 Autolisp 进行扩展。如果情况仍然如此,那么您真的想使用 Clojure 吗?只是好奇。
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.
据我所知,AutoDesk 在.net 环境中公开了其产品的 API。 Microsoft clr(.net 环境)中有一个并行的 clojure 实现。
https://github.com/richhickey/clojure-clr
我认为这将是一个更好的方法学习 Autocad 脚本。
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.