Export to DXF
Contents
[
Hide
]How to export to DXF
Issue: How to export to DXF.
Tips: To do this, you can use DxfOption, both binary and normal, in the file save options.
Note: One of the interesting features is the ability to save any supported file format to dxf. It is a really good feature, also has several nuances: Saving from DXF/DWG file formats - performs export with exact entities the source format has Export from other formats - performs export using only lines and text entities. Also, we support ASCII and binary DXf file formats
Example:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//load any supported file and save as dxf | |
using (var image = Image.Load(inputFile)) | |
{ | |
DxfOptions options = new DxfOptions(); | |
image.Save(outFile, options); | |
} | |
//load file and save as binary dxf | |
using (var image = Image.Load(inputFile)) | |
{ | |
DxfOptions options = new DxfOptions(); | |
options.DxfFileFormat = CAD.FileFormats.Cad.CadConsts.DxfFileFormat.Binary; | |
image.Save(outFile, options); | |
} |