Exportieren nach DXF
Wie man nach DXF exportiert
Problem: Wie man nach DXF exportiert.
Tipps: Dazu können Sie DxfOption, sowohl binär als auch normal, in den Datei-Speicheroptionen verwenden.
Hinweis: Eine der interessanten Funktionen ist die Möglichkeit, jedes unterstützte Dateiformat nach dxf zu speichern. Es ist eine wirklich gute Funktion, hat jedoch mehrere Nuancen: Das Speichern aus DXF/DWG-Dateiformaten - führt einen Export mit genauen Entitäten des Quellformats durch Der Export aus anderen Formaten - führt den Export nur mit Linien- und Textentitäten durch. Außerdem unterstützen wir ASCII- und binäre DXF-Dateiformate.
Beispiel:
//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); | |
} |