Skip to content

Code sample : how to convert a DWG to a ASCII DXF and select the ACAF version #232

Closed
@mlcvista

Description

@mlcvista

First, big thank you for your ACADSHARP.

I'm trying to use it to convert DWG to ASCII DXF...

I've use this code :

const string _file = "../../../../samples/sample_AC1032.dwg";
const string _filedxf = "../../../../samples/sample_AC1032_mlc.dxf";

static void Main(string[] args)
{
CadDocument doc;
using (DwgReader reader = new DwgReader(_file))
{
doc = reader.Read();
}

//exploreDocument(doc);

using (DxfWriter writer = new DxfWriter(_filedxf, doc,false))
{
	writer.OnNotification += NotificationHelper.LogConsoleNotification;
	writer.Write();
}

}

The dxf created is ASCII one... how to select the ACAD version of DXF if I want one, Please ?

With best regards,
MLC

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions