Generating AutoCAD files with java?
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 Desi开发者_如何学编程gn 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.
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
精彩评论