Open
Description
Autocad gives the error after wrriting DWG file with this simple code :
`
string dwgFilePath = @"G:/output.dwg";
CadDocument doc = new CadDocument(ACadVersion.AC1024);
//Create a point located in (10, 10, 0)
Point pt = new Point
{
Location = new CSMath.XYZ(10, 10, 0)
};
//Create a line from the origin to the point (5, 5, 0)
Line line = new Line
{
StartPoint = CSMath.XYZ.Zero,
EndPoint = new CSMath.XYZ(5, 5, 0)
};
doc.Entities.Add(pt);
doc.Entities.Add(line);
DwgWriter writer = new DwgWriter(dwgFilePath, doc);
`
After opening the exported file with Autocad 2017 :