Hello,
I want to Convert CAD files into SVG or any image format. I am using Aspose.Imaging for it.
I have implemented the tutorial, but it is not converting all the dwg files,
I have tried with 4 dwg files, among which only 1 file is converted.
Is there any specific format supported for cad files?
here is my sample code,
using (Image image = Image.Load(myDir + "Image\\Gasket.dwg"))
{
Stream str = new MemoryStream();
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
//Set page width & height
rasterizationOptions.PageWidth = 1000;
rasterizationOptions.PageHeight = 1000;
//Create an instance of PngOptions for the resultant image
ImageOptionsBase options = new JpegOptions();
//Set rasterization options
options.VectorRasterizationOptions = rasterizationOptions;
image.Save(myDir + "Image\\output.jpeg", options);
//return File(str, "MIME","ab");
}
2) Can I convert the dwg image selected layer wise?
3) can I convert dwg to image as per particular dimention?