Esportazione in DXF
Come esportare in DXF
Problema: Come esportare in DXF.
Suggerimenti: Per fare questo, puoi utilizzare DxfOption, sia binario che normale, nelle opzioni di salvataggio del file.
Nota: Una delle caratteristiche interessanti è la possibilità di salvare qualsiasi formato di file supportato in dxf. È una funzionalità davvero buona, ha anche diversi aspetti da considerare: Salvataggio dai formati di file DXF/DWG - esegue l’esportazione con esatti enti che ha il formato sorgente Esportazione da altri formati - esegue l’esportazione utilizzando solo entità di linee e testi. Inoltre, supportiamo i formati di file DXF ASCII e binari.
Esempio:
//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); | |
} |