This step‑by‑step tutorial shows you how to convert DWG to 3DS using the C# REST API. By leveraging the Aspose.CAD Cloud .NET SDK, you’ll create an online DWG‑to‑3DS converter, craft the proper request, and send it to the API for seamless conversion.
Prerequisite
- Create an account and get API credentials for changing a DWG file to 3DS
- Download Aspose.Cad Cloud SDK for Dotnet to convert DWG to 3DS
- Set up a C# project with the above SDK
Steps to Convert DWG to 3DS Online using C# REST API
- Create an instance of the CadApi client by providing your App SID, App Key, and the base API URL
- Specify the source design file DWG and set the destination path for the converted 3DS output file
- Open the input file, copy its contents into a memory stream, and reset the stream position for processing
- Build a 3DS conversion request object that encapsulates the input stream for processing by the CAD Cloud service
- Send the conversion request to Aspose.CAD Cloud API PutDrawingThreeDS and receive the converted 3DS file as a result stream
- Write the resulting stream to the specified output file path and confirm successful conversion with a completion message
The above steps summarize the process to change DWG to 3DS online using C# Low Code API. Initialize the Aspose.CAD Cloud client with your credentials, define the DWG input file and desired 3DS output path, then load the source file into a memory stream. Create and send a 3DS conversion request to the API, retrieve the converted stream, and save it to the specified output location.
Code for DWG to 3DS Converter using C# RESTful Service
In summary, the code above illustrates how to convert DWG to 3DS using the C# REST API. The PutDrawingThreeDSRequest class provides multiple constructors for initializing the request, letting you specify exportOptions, an output path, and the storage location when the source file already resides in cloud storage.
You’ve now mastered converting a DWG file to PDF with our C# REST API. For instructions on turning a DWG into a PSD, see the guide on Convert DWG to PSD using C# REST API.