dxf文件格式解析数据可以用
<!-- https://mvnrepository.com/artifact/net.sourceforge/kabeja --> <dependency> <groupId>net.sourceforge</groupId> <artifactId>kabeja</artifactId> <version>0.4</version> </dependency>
最后更新于2008年,现已经停止维护。
dwg文件格式解析数据可以用
<!-- https://mvnrepository.com/artifact/com.iver.cit/jdwglib --> <dependency> <groupId>com.iver.cit</groupId> <artifactId>jdwglib</artifactId> <version>1.0.1</version> </dependency>
支持autoCAD版本 AC1009|AC1010|AC1012|AC1014|AC1015
最后更新于2013年,现已经停止维护。
<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-parsers --> <dependency> <groupId>org.apache.tika</groupId> <artifactId>tika-parsers</artifactId> <version>2.1.0</version> <type>pom</type> </dependency>
支持autoCAD版本 AC1015|AC1018
最后更新于2021年。
<!-- https://mvnrepository.com/artifact/com.1spatial/dwg-lib --> <dependency> <groupId>com.1spatial</groupId> <artifactId>dwg-lib</artifactId> <version>0.8</version> </dependency>
最后更新于2017年,几乎不怎么维护了。
AC1014 之前的dwg基本已经不用了,但是目前常用的版中,没有找到 支持解析dwg文件版本为AC1024的开源jar包。
DWG文件版本对照
MC0.0 - DWG from Rel. 1.1 AC1.2 - DWG from Rel. 1.2 AC1.4 - DWG from Rel. 1.4 AC1.50 - DWG from Rel. 2.0 AC2.10 - DWG from Rel. 2.10 AC1002 - DWG from Rel. 2.5 AC1003 - DWG from Rel. 2.6 AC1004 - DWG from Rel.9 AC1006 - DWG from Rel.10 AC1009 - DWG from Rel.11/12 (or LT R1/R2) AC1012 - DWG from Rel.13 (or LT95) AC1014 - DWG from Rel.14, 14.01 (or LT97/LT98) AC1015 - DWG from AutoCAD 2000/2000i/2002 (or LT, Map or relative Desktop version) AC1018 - DWG from AutoCAD 2004/2005/2006 (or other product in the "2004", "2005" or "2006" family) AC1021 - DWG from AutoCAD 2007/2008/2009 (or other product of the "2007", "2008" and "2009" families) AC1024 - DWG from AutoCAD 2010 (or other product of the "2010" family)