Browse our Products

Aspose.CAD for .NET 20.3 - Release Notes

KeySummaryCategory
CADNET-818How to interrupt or put a timeout on SaveNew Feature
CADNET-793Support for DXF VersionNew Feature
CADNET-593Support for DWFX filesNew Feature
CADNET-810Implement automatic codepage detection for DWG and DXFNew Feature
CADNET-421DWG not properly converted to pdf (.NET)Enhancement
CADNET-1049Infinite loop when converting DWG to PDFEnhancement
CADNET-1048Exception on exporting DWG to PDFEnhancement
CADNET-1047Conversion to PDF lasts for too long and one CPU core is completely usedEnhancement
CADNET-1044ImageLoadException: Cannot process loading further due to incorrect file format structure. Error details: Index was out of range, at Image.Load while loading a DWGEnhancement
CADNET-1011Aspose.CAD 19.9: Converting particular DWG to PDF produce too small and unreadable graphicEnhancement
CADNET-1004Fix damaged export of layouts for DXF R12Enhancement
CADNET-993On conversion to PDF vertical text has been rendered as horizontalEnhancement
CADNET-986DWG to PDF conversion took a long timeEnhancement
CADNET-985Exception on loading DWF fileEnhancement
CADNET-978Exception on converting DWG file to JPGEnhancement
CADNET-969Image export failed on saving DWFEnhancement
CADNET-966Exception on converting DXF file to PDFEnhancement
CADNET-960Blank image when saving DWGEnhancement
CADNET-959Image saving failed exception when saving DWGEnhancement
CADNET-953DWG not properly converted to PDFEnhancement
CADNET-796Cannot process loading further due to incorrect file format structure exception on loading DWGEnhancement
CADNET-795The file is incompatible with exporter exception on exporting DWGEnhancement
CADNET-794Length cannot be less than zero exception on exporting DWGEnhancement
CADNET-779DWG to PNG not properly convertedEnhancement
CADNET-766Wrong drawing of CadGraphicsDataContainer entities.Enhancement
CADNET-568Text missing in generated PDFEnhancement
CADNET-136Low quality of PDF files generated by GDI PDF exporterEnhancement
CADNET-1046Wrong UnitType on converting DXF to PDFEnhancement
CADNET-605Support For Recent version of AutocadEnhancement
CADNET-1045Specifying page size for CadRasterizationOptions to export to PDFEnhancement
CADNET-1010DWG to PDF: The text is not getting bolder in PDF (C# .NET)Enhancement
CADNET-980Push drawing down to add a headingEnhancement
CADNET-975Get CF2 layersEnhancement
CADNET-841Security review for Aspose.CADEnhancement

Public API Changes

Added APIs:

Class         Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion Class         Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat Class         Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImage Class         Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase Class         Aspose.CAD.ImageOptions.Margins Class         Aspose.CAD.InterruptionToken Class         Aspose.CAD.InterruptionTokenSource Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.BitonalMapped Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.Group3XMapped Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.Indexed Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.JPEG Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.Mapped Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.RGB Field/Enum    Aspose.CAD.FileFormats.Dwf.Whip.DwfWhipImageFormat.RGBA Method        Aspose.CAD.CmykColor.Equals(System.Object) Method        Aspose.CAD.FileFormats.Cad.CadLayersList.GetLayer(System.String) Method        Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.CompressBytes Method        Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion.#ctor Method        Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion.InitQuaternion(System.Byte[],System.Int32) Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImage.#ctor(System.Int32) Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImage.CheckFormat(System.Int32) Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.#ctor(System.Int32) Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.CheckFormat(System.Int32) Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.CheckFormat(System.Int32) Method        Aspose.CAD.ImageOptions.Margins.#ctor Method        Aspose.CAD.InterruptionTokenSource.#ctor Method        Aspose.CAD.InterruptionTokenSource.Dispose Method        Aspose.CAD.InterruptionTokenSource.Interrupt Method        Aspose.CAD.Point.op_Explicit(Aspose.CAD.Point)    Method        Aspose.CAD.PointF.op_Explicit(Aspose.CAD.PointF)    Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,   ) Property      Aspose.CAD.FileFormats.Cad.CadObjects.CadMText.FullClearText Property      Aspose.CAD.FileFormats.Dgn.DgnElements.DgnDrawingElementBaseQuaternion.QuaternionRotations Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.BinaryData Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.Columns Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MaxCorner Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MaxPoint Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MinCorner Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.MinPoint Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipImageBase.Rows Property      Aspose.CAD.ImageOptions.CadRasterizationOptions.ExportAllLayoutContent Property      Aspose.CAD.ImageOptions.Margins.Bottom Property      Aspose.CAD.ImageOptions.Margins.Left Property      Aspose.CAD.ImageOptions.Margins.Right Property      Aspose.CAD.ImageOptions.Margins.Top Property      Aspose.CAD.ImageOptions.PdfDocumentOptions.DigitalSignatureDetails Property      Aspose.CAD.ImageOptions.RasterizationQuality.TextThicknessNormalization Property      Aspose.CAD.ImageOptions.VectorRasterizationOptions.Margins Property      Aspose.CAD.ImageOptionsBase.InterruptionToken Property      Aspose.CAD.ImageOptionsBase.Timeout Property      Aspose.CAD.InterruptionTokenSource.Token Property      Aspose.CAD.Xmp.Types.Derived.RenditionClass.DefinedValues

Removed APIs

Class         Aspose.CAD.Extensions.ColorExtensions Class         Aspose.CAD.Extensions.FontExtensions Class         Aspose.CAD.Extensions.ImageExtensions Class         Aspose.CAD.Extensions.MatrixExtensions Class         Aspose.CAD.Extensions.PointExtensions Class         Aspose.CAD.Extensions.RectangleExtensions Class         Aspose.CAD.Extensions.RotateFlipExtensions Class         Aspose.CAD.Extensions.StringFormatExtensions Class         Aspose.CAD.Font Class         Aspose.CAD.StringFormat Field/Enum    Aspose.CAD.Xmp.Types.Derived.RenditionClass.DefinedValues Method        Aspose.CAD.Extensions.ColorExtensions.ToGdiColor(Aspose.CAD.Color) Method        Aspose.CAD.Extensions.ColorExtensions.ToGdiColors(Aspose.CAD.Color[]) Method        Aspose.CAD.Extensions.FontExtensions.ToGdiFont(Aspose.CAD.Font) Method        Aspose.CAD.Extensions.ImageExtensions.ToGdiImage(Aspose.CAD.Image) Method        Aspose.CAD.Extensions.MatrixExtensions.ToGdiMatrix(Aspose.CAD.Matrix) Method        Aspose.CAD.Extensions.PointExtensions.ToGdiPoint(Aspose.CAD.PointF) Method        Aspose.CAD.Extensions.PointExtensions.ToGdiPoints(Aspose.CAD.PointF[]) Method        Aspose.CAD.Extensions.PointExtensions.ToPointsArray(Aspose.CAD.Point[]) Method        Aspose.CAD.Extensions.RectangleExtensions.ToGdiRectangle(Aspose.CAD.Rectangle) Method        Aspose.CAD.Extensions.RectangleExtensions.ToGdiRectangle(Aspose.CAD.RectangleF) Method        Aspose.CAD.Extensions.RotateFlipExtensions.ToGdiRotateFlipType(Aspose.CAD.RotateFlipType) Method        Aspose.CAD.Extensions.StringFormatExtensions.ToGdiStringFormat(Aspose.CAD.StringFormat) Method        Aspose.CAD.FileFormats.Cad.CadLayersList.GetLayersByName(System.String) Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadApplicationCodesContainer.GetAcadReactorsCodes Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadApplicationCodesContainer.GetAcadXDictionaryCodes Method        Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.FoundLiteral Method        Aspose.CAD.FileFormats.Dgn.DgnElements.DgnArcBasedElement.InitQuaternion(System.Byte[],System.Int32) Method        Aspose.CAD.FileFormats.Tiff.TiffRational.op_Equality(Aspose.CAD.FileFormats.Tiff.TiffRational,Aspose.CAD.FileFormats.Tiff.TiffRational) Method        Aspose.CAD.FileFormats.Tiff.TiffRational.op_Inequality(Aspose.CAD.FileFormats.Tiff.TiffRational,Aspose.CAD.FileFormats.Tiff.TiffRational) Method        Aspose.CAD.FileFormats.Tiff.TiffSRational.op_Equality(Aspose.CAD.FileFormats.Tiff.TiffSRational,Aspose.CAD.FileFormats.Tiff.TiffSRational) Method        Aspose.CAD.FileFormats.Tiff.TiffSRational.op_Inequality(Aspose.CAD.FileFormats.Tiff.TiffSRational,Aspose.CAD.FileFormats.Tiff.TiffSRational) Method        Aspose.CAD.Font.#ctor(Aspose.CAD.Font,Aspose.CAD.FontStyle) Method        Aspose.CAD.Font.#ctor(System.String,System.Single) Method        Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.FontStyle) Method        Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.FontStyle,Aspose.CAD.GraphicsUnit) Method        Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.FontStyle,Aspose.CAD.GraphicsUnit,Aspose.CAD.CharacterSet) Method        Aspose.CAD.Font.#ctor(System.String,System.Single,Aspose.CAD.GraphicsUnit) Method        Aspose.CAD.Font.DeepClone Method        Aspose.CAD.Font.Equals(System.Object) Method        Aspose.CAD.Font.GetHashCode Method        Aspose.CAD.Font.ToString Method        Aspose.CAD.Point.op_Explicit(Aspose.CAD.Point)    Method        Aspose.CAD.PointF.op_Explicit(Aspose.CAD.PointF)    Method        Aspose.CAD.StringFormat.#ctor Method        Aspose.CAD.StringFormat.#ctor(Aspose.CAD.StringFormat) Method        Aspose.CAD.StringFormat.#ctor(Aspose.CAD.StringFormatFlags) Method        Aspose.CAD.StringFormat.DeepClone Method        Aspose.CAD.StringFormat.SetTabStops(System.Single,System.Single[]) Method        Aspose.CAD.StringFormat.ToString Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,   ) Property      Aspose.CAD.FileFormats.Dgn.DgnElements.DgnArcBasedElement.QuaternionRotations Property      Aspose.CAD.FileFormats.Dgn.DgnElements.DgnConeElement.QuaternionRotations Property      Aspose.CAD.FileFormats.Dgn.DgnElements.DgnTextElement.QuaternionRotations Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.BinaryData Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.Columns Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MaxCorner Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MaxPoint Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MinCorner Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.MinPoint Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPNGGroup4Image.Rows Property      Aspose.CAD.Font.Bold Property      Aspose.CAD.Font.CharacterSet Property      Aspose.CAD.Font.Italic Property      Aspose.CAD.Font.Name Property      Aspose.CAD.Font.Size Property      Aspose.CAD.Font.Strikeout Property      Aspose.CAD.Font.Style Property      Aspose.CAD.Font.Underline Property      Aspose.CAD.Font.Unit Property      Aspose.CAD.StringFormat.Alignment Property      Aspose.CAD.StringFormat.DigitSubstitutionLanguage Property      Aspose.CAD.StringFormat.DigitSubstitutionMethod Property      Aspose.CAD.StringFormat.FirstTabOffset Property      Aspose.CAD.StringFormat.FormatFlags Property      Aspose.CAD.StringFormat.GenericDefault Property      Aspose.CAD.StringFormat.GenericTypographic Property      Aspose.CAD.StringFormat.HotkeyPrefix Property      Aspose.CAD.StringFormat.LineAlignment Property      Aspose.CAD.StringFormat.TabStops Property      Aspose.CAD.StringFormat.Trimming

Usage examples:

CADNET-810 - Implement automatic codepage detection for DWG and DXF

 using (CadImage cadImage = (CadImage)Image.Load(

    GetFileFromDesktop("file.dwg"),

    new LoadOptions()

    {

        SpecifiedEncoding = CodePages.Japanese,

        SpecifiedMifEncoding = MifCodePages.Japanese,

        RecoverMalformedCifMif = false

    }))

{

    //do export or something else with cadImage

}

CADNET-593 - Support for DWFX files

 using (Image cadDrawing = Image.Load("example-580-W.dwfx"))

{

    var rasterizationOptions = new CadRasterizationOptions();

    rasterizationOptions.PageWidth = cadDrawing.Size.Width;

    rasterizationOptions.PageHeight = cadDrawing.Size.Height;

    PdfOptions CADf = new PdfOptions();

    CADf.VectorRasterizationOptions = rasterizationOptions;

    cadDrawing.Save("example-580-W_custom.pdf", CADf);

}

CADNET-818 - How to interrupt or put a timeout on Save

 using (Image cadDrawing = Image.Load("huge-drawing.dwg"))

{

    var rasterizationOptions = new CadRasterizationOptions();

    rasterizationOptions.PageWidth = cadDrawing.Size.Width;

    rasterizationOptions.PageHeight = cadDrawing.Size.Height;

    using (var its = new InterruptionTokenSource())

    {

        PdfOptions CADf = new PdfOptions();

        CADf.VectorRasterizationOptions = rasterizationOptions;

        CADf.InterruptionToken = its.Token;

        var exportTask = Task.Factory.StartNew(() =>

        {

            cadDrawing.Save("example-580-W_custom.pdf", CADf);

        });

        Thread.Sleep(10000);

        its.Interrupt();

        exportTask.Wait();

    }

}