HTML
JPG
CAD
XML
DWG
DXF
सी # के माध्यम से सीएफएफ 2 को बीएमपी में कनवर्ट करें
AutoCAD® या किसी अन्य रेंडरिंग सॉफ़्टवेयर की आवश्यकता के बिना DWG को तुरंत DXF में बदलें।
DWG को DXF में बदलने के लिए, हम Aspose.CAD for .NET API का उपयोग करेंगे जो एक सुविधा संपन्न, शक्तिशाली और सी # प्लेटफॉर्म के लिए दस्तावेज़ हेरफेर और रूपांतरण एपीआई का उपयोग करना आसान है। NuGet पैकेज मैनेजर खोलें, Aspose.CAD खोजें और इंस्टॉल करें। आप पैकेज मैनेजर कंसोल से निम्न कमांड का भी उपयोग कर सकते हैं।
पैकेज मैनेजर कंसोल कमांड
PM> Install-Package Aspose.CAD
DWG को C# के माध्यम से DXF में बदलने के चरण
- छवि के साथ DWG फ़ाइल लोड करें। लोड विधि
- पृष्ठ ऊंचाई और चौड़ाई के साथ CadRasterizationOptions का ऑब्जेक्ट सेट करें
- DxfOptions वर्ग का एक उदाहरण बनाएं और इसकी वेक्टररास्टराइजेशनऑप्शन संपत्ति सेट करें
- DxfOptions के परिणामी फ़ाइल पथ और ऑब्जेक्ट को पास करते समय Image.Save विधि को कॉल करें
रूपांतरण आवश्यकताएँ
- माइक्रोसॉफ्ट विंडोज या कॉम इंटरऑप के माध्यम से .NET फ्रेमवर्क, .NET कोर, और PHP, VBScript, डेल्फी, सी ++ के साथ संगत ओएस।
- माइक्रोसॉफ्ट विजुअल स्टूडियो जैसे विकास का माहौल।
- आपके प्रोजेक्ट में संदर्भित .NET DLL के लिए Aspose.CAD।
यह नमूना कोड DWG से DXF C# रूपांतरण दिखाता है
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 DWG in an instance of Image via its Load method | |
using (var image = Image.Load("template.dwg")) | |
{ | |
// 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 DWG to DXF | |
image.Save("output.dxf", options); | |
} |
DWG को DXF में बदलने के लिए फ्री ऐप
Check our live demos for DWG to DXF conversion with following benefits.
No need to download or setup anything.
No need to write any code.
Just upload your DWG file and hit the "Convert" button.
You will instantly get the download link for resultant DXF file.