DXF へのエクスポート
Contents
[
Hide
]DXF へのエクスポート方法
問題: DXF へのエクスポート方法。
ヒント: このために、ファイル保存オプションで DxfOption(二進数および通常の両方)を使用できます。
注意: 興味深い特徴の1つは、サポートされている任意のファイル形式を dxf に保存できる能力です。 これは実際に良い機能であり、いくつかのニュアンスもあります: DXF/DWG ファイル形式からの保存 - ソース形式が持つ正確なエンティティでエクスポートを実行します 他の形式からのエクスポート - 線とテキストエンティティのみを使用してエクスポートを実行します。 また、ASCII およびバイナリ DXF ファイル形式をサポートしています。
例:
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); | |
} |