Generating AutoCAD files with java?

情到浓时终转凉″ 提交于 2021-02-19 02:24:07

问题


Does anyone have any tips how I can generate AutoCAD drawings with Java? Is dfx a good interface or should we go for dwg files?

I can't find any useful information on this on the net. The Open Design Alliance have libraries for generating dwg, but I can't look at the API without becoming a member. And they don't seem to have a java interface either.


回答1:


If you don't have to generate dwg, and you can represent what you want in dxf then I suggest going with dxf. It is fairly easy to write dxf manually from java without the need for an expensive library.

Unlike dwg which is the native application format of AutoCad, DXF is an interchange format, and as such Autodesk encourages you to use it. They publish the specifications here.

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12272454&linkID=10809853



来源:https://stackoverflow.com/questions/7639855/generating-autocad-files-with-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!