Browse our Products

Aspose.CAD for .NET 19.5 - Release Notes

KeySummaryCategory
CADNET-653Support for .NET coreFeature
CADNET-539Support saving into SVGFeature
CADNET-731Support for IFC file rendering in Aspose.CADFeature
CADNET-622Enable Tracking when exporting to PDFFeature
CADNET-417Implement ‘Warning’ notifications mechanism for exportFeature
CADNET-775DWG to PDF: Hatches flipped and issues with German charsEnhancement
CADNET-765Get rid of DataRecoveryMode optionEnhancement
CADNET-717The output PDF text content is not editableEnhancement
CADNET-752Get rid of TypeOfEntities export optionEnhancement
CADNET-124Show events for customer for problematic entities during exportEnhancement
CADNET-746Text for dimension line is rotated in exported PDFEnhancement
CADNET-763Aspose.CAD 18.12: Exception when opening particular IFCEnhancement
CADNET-744DWG file take too much time to JPGEnhancement
CADNET-732Check reading of pointer to layout for DWG R14Enhancement
CADNET-726Improve MText parsing algorithmEnhancement
CADNET-737Implement export to SVG formatEnhancement
CADNET-617Exception on converting DWG to JPEGEnhancement
CADNET-340Empty result when saving as image or PDFEnhancement
CADNET-613Aps rasterization to raster does not take GraphicsOptions into accountEnhancement
CADNET-5Rendering the CAD to Image and CAD to PDF results in blank frames/pagesEnhancement
CADNET-8Incomplete rendering & blank pages while converting DWG to PDFEnhancement
CADNET-740Read viewport ID from DWG format (all versions)Enhancement
CADNET-739Read viewport ID from DXF binary formatEnhancement
CADNET-767Improve Mtext export after refactoringEnhancement
CADNET-688How to use tiled rendering in new versionEnhancement

Public API Changes

Added APIs:

Class         Aspose.CAD.ImageOptions.SvgOptions Class         Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoreType Class         Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs Class         Aspose.CAD.ImageOptions.SvgOptionsParameters.ISvgResourceKeeperCallback Class         Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode Class         Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType Field/Enum    Aspose.CAD.FileFormat.SVG Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoreType.Embedded Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoreType.None Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoreType.Stream Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode.Cmyk Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode.Grayscale Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode.Rgb Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode.YCbCr Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode.Ycck Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType.Bmp Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType.Gif Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType.Jpeg Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType.Png Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType.Tiff Field/Enum    Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType.Unknown Method        Aspose.CAD.ImageOptions.SvgOptions.#ctor Method        Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.#ctor Method        Aspose.CAD.ImageOptions.SvgOptionsParameters.ISvgResourceKeeperCallback.OnFontResourceReady(Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs) Method        Aspose.CAD.ImageOptions.SvgOptionsParameters.ISvgResourceKeeperCallback.OnImageResourceReady(System.Byte[],Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgImageType,System.String,System.Boolean@) Method        Aspose.CAD.ImageOptions.SvgOptionsParameters.ISvgResourceKeeperCallback.OnSvgDocumentReady(System.Byte[],System.String) Method        Aspose.CAD.Metered.GetConsumptionCredit Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,   ) Property      Aspose.CAD.ImageOptions.SvgOptions.Callback Property      Aspose.CAD.ImageOptions.SvgOptions.ColorType Property      Aspose.CAD.ImageOptions.SvgOptions.TextAsShapes Property      Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.DestFontStream Property      Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.DisposeStream Property      Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.FontFileUri Property      Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.FontStoreType Property      Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.SourceFontFileName Property      Aspose.CAD.ImageOptions.SvgOptionsParameters.FontStoringArgs.SourceFontStream

Removed APIs

Class         Aspose.CAD.ColorPalette Class         Aspose.CAD.DataRecoveryMode Class         Aspose.CAD.ImageOptions.TypeOfEntities Class         Aspose.CAD.Xmp.XmpArrayHelper Field/Enum    Aspose.CAD.DataRecoveryMode.ConsistentRecover Field/Enum    Aspose.CAD.DataRecoveryMode.MaximalRecover Field/Enum    Aspose.CAD.DataRecoveryMode.None Field/Enum    Aspose.CAD.ImageOptions.TypeOfEntities.Entities2D Field/Enum    Aspose.CAD.ImageOptions.TypeOfEntities.Entities3D Method        Aspose.CAD.ColorPalette.#ctor(Aspose.CAD.Color[]) Method        Aspose.CAD.ColorPalette.#ctor(Aspose.CAD.Color[],System.Boolean) Method        Aspose.CAD.ColorPalette.#ctor(System.Int32[]) Method        Aspose.CAD.ColorPalette.#ctor(System.Int32[],System.Boolean) Method        Aspose.CAD.ColorPalette.CopyPalette(Aspose.CAD.IColorPalette) Method        Aspose.CAD.ColorPalette.CopyPalette(Aspose.CAD.IColorPalette,System.Boolean) Method        Aspose.CAD.ColorPalette.GetArgb32Color(System.Int32) Method        Aspose.CAD.ColorPalette.GetColor(System.Int32) Method        Aspose.CAD.ColorPalette.GetNearestColorIndex(Aspose.CAD.Color) Method        Aspose.CAD.ColorPalette.GetNearestColorIndex(System.Int32) Method        Aspose.CAD.Xmp.XmpArrayHelper.GetRdfCode(Aspose.CAD.Xmp.XmpArrayType) Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,   ) Property      Aspose.CAD.ColorPalette.Argb32Entries Property      Aspose.CAD.ColorPalette.Entries Property      Aspose.CAD.ColorPalette.EntriesCount Property      Aspose.CAD.ColorPalette.IsCompactPalette Property      Aspose.CAD.ImageOptions.CadRasterizationOptions.TypeOfEntities Property      Aspose.CAD.ImageOptions.VectorRasterizationOptions.CenterDrawing Property      Aspose.CAD.LoadOptions.DataRecoveryMode Class         Aspose.CAD.ColorPalette Class         Aspose.CAD.DataRecoveryMode Class         Aspose.CAD.ImageOptions.TypeOfEntities Class         Aspose.CAD.Xmp.XmpArrayHelper Field/Enum    Aspose.CAD.DataRecoveryMode.ConsistentRecover Field/Enum    Aspose.CAD.DataRecoveryMode.MaximalRecover Field/Enum    Aspose.CAD.DataRecoveryMode.None Field/Enum    Aspose.CAD.ImageOptions.TypeOfEntities.Entities2D Field/Enum    Aspose.CAD.ImageOptions.TypeOfEntities.Entities3D Method        Aspose.CAD.ColorPalette.#ctor(Aspose.CAD.Color[]) Method        Aspose.CAD.ColorPalette.#ctor(Aspose.CAD.Color[],System.Boolean) Method        Aspose.CAD.ColorPalette.#ctor(System.Int32[]) Method        Aspose.CAD.ColorPalette.#ctor(System.Int32[],System.Boolean) Method        Aspose.CAD.ColorPalette.CopyPalette(Aspose.CAD.IColorPalette) Method        Aspose.CAD.ColorPalette.CopyPalette(Aspose.CAD.IColorPalette,System.Boolean) Method        Aspose.CAD.ColorPalette.GetArgb32Color(System.Int32) Method        Aspose.CAD.ColorPalette.GetColor(System.Int32) Method        Aspose.CAD.ColorPalette.GetNearestColorIndex(Aspose.CAD.Color) Method        Aspose.CAD.ColorPalette.GetNearestColorIndex(System.Int32) Method        Aspose.CAD.Xmp.XmpArrayHelper.GetRdfCode(Aspose.CAD.Xmp.XmpArrayType) Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,   ) Property      Aspose.CAD.ColorPalette.Argb32Entries Property      Aspose.CAD.ColorPalette.Entries Property      Aspose.CAD.ColorPalette.EntriesCount Property      Aspose.CAD.ColorPalette.IsCompactPalette Property      Aspose.CAD.ImageOptions.CadRasterizationOptions.TypeOfEntities Property      Aspose.CAD.ImageOptions.VectorRasterizationOptions.CenterDrawing Property      Aspose.CAD.LoadOptions.DataRecoveryMode

Usage examples:

CADNET-539 Support saving into SVG

 using (Image image = Image.Load(GetDwgFile("test-2010.dwg")))

{

    var options = new SvgOptions();

    options.ColorType = Aspose.CAD.ImageOptions.SvgOptionsParameters.SvgColorMode.Grayscale;

    options.TextAsShapes = true;

    image.Save(GetFileFromDesktop("test-2010.dwg.svg"));

}

CADNET-622 Enable Tracking when exporting to PDF

 using (Image image = Image.Load("example.dxf"))

{

    using (FileStream stream = new FileStream("output_example.pdf", FileMode.Create))

    {

        PdfOptions pdfOptions = new PdfOptions();

        CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();

        pdfOptions.VectorRasterizationOptions = cadRasterizationOptions;

        cadRasterizationOptions.PageWidth = 800;

        cadRasterizationOptions.PageHeight = 600;

        int idxError = 1;

        cadRasterizationOptions.RenderResult += new CadRasterizationOptions.CadRenderHandler(

            delegate(CadRenderResult result)

            {

                Console.WriteLine("Tracking results of exporting");

                if (result.IsRenderComplete)

                    return;

                Console.WriteLine("Have some problems:");

                foreach (RenderResult rr in result.Failures)

                    Console.WriteLine(string.Format("{0}. {1}, {2}", idxError++, rr.RenderCode.ToString(),

                        rr.Message));

            });

        Console.WriteLine("Exporting to pdf format");

        image.Save(stream, pdfOptions);

    }

}