The AutoCAD Exporter extension helps you export a drawing to AutoCAD Drawing Interchange Format (DXF). It is represented by the NAutocadExporter class, which one and only constructor by design requires a reference to the document that is going to be exported to DXF.
C# |
Copy Code
|
---|---|
NAutocadExporter exporter = new NAutocadExporter(document);
|
Visual Basic |
Copy Code
|
---|---|
Dim exporter As NAutocadExporter = New NAutocadExporter(document) |
You can use the SaveToFile method of the exporter to export the drawing directly to a DXF file or you can use the RenderToDxf method to get an NDxfImage of the drawing. The AutoCAD Exporter also has a localizable visual interface, which is displayed by the ShowDialog method.