HTML JPG CAD XML DWT
  Product Family
DXF

DWT’yi C# ile DXF’ye dönüştürün

AutoCAD® veya başka herhangi bir işleme yazılımına ihtiyaç duymadan anında DWT’yi DXF’ye dönüştürün.

DWT’yi DXF’ye dönüştürmek için, zengin özelliklere sahip, güçlü ve C# platformu için kullanımı kolay belge işleme ve dönüştürme API’si. NuGet paket yöneticisini açın, Aspose.CAD’i arayın ve kurun. Paket Yöneticisi Konsolundan aşağıdaki komutu da kullanabilirsiniz.

Paket Yöneticisi Konsol Komutu


PM> Install-Package Aspose.CAD

C# ile DWT'yi DXF'ye Dönüştürme Adımları

  1. DWT dosyasını Image.Load yöntemiyle yükleyin
  2. Sayfa yüksekliği ve genişliği ile bir CadRasterizationOptions nesnesi ayarlayın
  3. DxfOptions sınıfının bir örneğini oluşturun ve VectorRasterizationOptions özelliğini ayarlayın
  4. Sonuç dosya yolunu ve DxfOptions nesnesini iletirken Image.Save yöntemini çağırın

Dönüşüm Gereksinimleri

  • Microsoft Windows veya COM Interop aracılığıyla .NET Framework, .NET Core ve PHP, VBScript, Delphi, C++ ile uyumlu bir işletim sistemi.
  • Microsoft Visual Studio gibi geliştirme ortamı.
  • Projenizde referans verilen Aspose.CAD for .NET DLL.
 

Bu örnek kod, DWT'den DXF'ye C# Dönüşümünü gösterir

// load DWT in an instance of Image via its Load method
using (var image = Image.Load("template.dwt"))
{
// create an instance of CadRasterizationOptions and set page height & width
var rasterizationOptions = new ImageOptions.CadRasterizationOptions()
{
PageWidth = 1600,
PageHeight = 1600
};
// create an instance of DxfOptions
var options = new ImageOptions.DxfOptions();
// set the VectorRasterizationOptions property as CadRasterizationOptions
options.VectorRasterizationOptions = rasterizationOptions;
// export DWT to DXF
image.Save("output.dxf", options);
}
 

DWT’yi DXF’ye Dönüştürmek için Ücretsiz Uygulama

Check our live demos for DWT to DXF conversion with following benefits.

  No need to download or setup anything.
  No need to write any code.
  Just upload your DWT file and hit the "Convert" button.
  You will instantly get the download link for resultant DXF file.