# parsedxf-spring-boot-starter **Repository Path**: LevelCoder/parsedxf-spring-boot-starter ## Basic Information - **Project Name**: parsedxf-spring-boot-starter - **Description**: 通过spring-boot-sarter的方式引入解析CAD文件类型dxf,包括point line polyline lwpoline circle block等。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-09-29 - **Last Updated**: 2024-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # parsedxf-spring-boot-starter #生活不易,大佬们star一下呗! #### 介绍 通过spring-boot-sarter的方式引入解析CAD文件类型dxf,包括point line polyline lwpoline circle block等。 **注意*,*不能解析圆弧和立体图形 #### 软件架构 软件架构说明 **后期有空我会把每种图形的接口都开放出来,敬请期待** #### 安装教程 1. 将starter项目maven打包 mvn clean install 2. 你的项目比如,test项目pom应用即可 ``` com.blue parsedxf-spring-boot-starter 0.0.1-SNAPSHOT ``` 3. **启动类开启注解 @EnableParseDxf** 4. @Autowired 注入ParseDxfLayout #### 使用说明 1. 关键API - 解析一般的图形 `Map parseDxf = parseDxfLayout.parseDxf(dxfPath);` - 解析块,然后打散 `List list1 = parseDxfLayout.parseDataLoop(parseDxf, projectGeoModel);` ``` @Autowired private ParseDxfLayout parseDxfLayout; @Test void testParse() throws JsonProcessingException { String dxfPath = "D:\\file\\Drawing1.dxf"; ProjectGeoModel projectGeoModel = new ProjectGeoModel(); projectGeoModel.setFilePath(dxfPath); projectGeoModel.setXh(Long.parseLong("1")); projectGeoModel.setDrawUser("Diamand_Blue"); projectGeoModel.setLineColor("blue"); Map parseDxf = parseDxfLayout.parseDxf(dxfPath); List list1 = parseDxfLayout.parseDataLoop(parseDxf, projectGeoModel); System.out.println(list1); } ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)