dxf转dwg
-
可以使用https://www.cnblogs.com/MakeView660/p/12326159.html
中提到的方法,我不会c++,没有做尝试 -
可以使用白佬说的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);
}

浙公网安备 33010602011771号