Skip to content

Drawing file is not valid #452

Open
Open
@amirj0914

Description

@amirj0914

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 :

err

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions