HTML
JPG
CAD
XML
PLT
DXF
PLT’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 PLT’yi DXF’ye dönüştürün.
PLT’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 PLT'yi DXF'ye Dönüştürme Adımları
- PLT dosyasını Image.Load yöntemiyle yükleyin
- Sayfa yüksekliği ve genişliği ile bir CadRasterizationOptions nesnesi ayarlayın
- DxfOptions sınıfının bir örneğini oluşturun ve VectorRasterizationOptions özelliğini ayarlayın
- 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, PLT'den DXF'ye C# Dönüşümünü gösterir
This file contains 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 PLT in an instance of Image via its Load method | |
using (var image = Image.Load("template.plt")) | |
{ | |
// 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 PLT to DXF | |
image.Save("output.dxf", options); | |
} |
PLT’yi DXF’ye Dönüştürmek için Ücretsiz Uygulama
Check our live demos for PLT to DXF conversion with following benefits.
No need to download or setup anything.
No need to write any code.
Just upload your PLT file and hit the "Convert" button.
You will instantly get the download link for resultant DXF file.