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 @ 2024-11-06 14:22  elepeipei  阅读(98)  评论(0)    收藏  举报