dxf转dwg

  1. 可以使用https://www.cnblogs.com/MakeView660/p/12326159.html
    中提到的方法,我不会c++,没有做尝试

  2. 可以使用白佬说的acadsharp
    经过测试,可以转出dwg,但是不支持实体

     static void Main(string[] args)
     {
     	//CadDocument doc = DwgReader.Read(@"C:\Users\Desktop\2007acadsharp.dxf");//读取dxf不能用dwgreader
     	CadDocument doc2=DxfReader.Read(@"C:\Users\Desktop\test3d.dxf");
     	// Get the model space where all the drawing entities are
     	var ents =  doc2.Entities;
     	 DwgWriter.Write(@"C:\Users\Desktop\test3d.dwg", doc2);
     }
    
posted @   elepeipei  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 提示词工程——AI应用必不可少的技术
· 地球OL攻略 —— 某应届生求职总结
· 字符编码:从基础到乱码解决
· SpringCloud带你走进微服务的世界
点击右上角即可分享
微信分享提示