用Java生成AutoCAD文件? [英] Generating AutoCAD files with java?
问题描述
有没有人提示我如何使用Java生成AutoCAD图形?dfx是一个很好的界面,还是我们应该使用dwg文件?
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?
我在网上找不到任何有用的信息.开放设计联盟(Open Design Alliance)具有用于生成dwg的库,但是如果不成为成员,我将无法看一下API.而且它们似乎也没有Java接口.
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.
推荐答案
如果不必生成dwg,并且可以在dxf中表示所需内容,那么我建议使用dxf.从Java手动编写dxf相当容易,不需要昂贵的库.
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.
与dwg是AutoCad的本机应用程序格式不同,DXF是一种交换格式,因此Autodesk鼓励您使用它.他们在此处发布规范.
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
这篇关于用Java生成AutoCAD文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!