Aspose.CAD for .NET 20.1 - Release Notes

KeySummaryCategory
CADNET-769Support for OBJ formatFeature
CADNET-697Support for conversion of DWG to DWFFeature
CADNET-23Ability to manipulate hyperlinks in AutoCAD drawingsFeature
CADNET-842Read hyperlinks and OLE object links sectionFeature
CADNET-971Text Color problem in exported PDFEnhancement
CADNET-839Last Author metadata information failed to get extractedEnhancement
CADNET-783DWG drawings take a long time to convert to PDFEnhancement
CADNET-1002Create PDF from DWG fileEnhancement
CADNET-1000DWG not converted to PDFBug
CADNET-998DWF not properly converted to PNGBug
CADNET-996ImageLoadException on loading corrupted DWG fileBug
CADNET-995DXF file not properly converted to PNGBug
CADNET-984DWT file format detection issueBug
CADNET-977Exception on loading DWF fileBug
CADNET-973Export of STL to WMF failedBug
CADNET-967Blank output when saving STL fileBug
CADNET-961Empty folder called TempFonts created in a temp directoryBug
CADNET-957Default font setting stopped workingBug
CADNET-956Hidden layers have same Flags values as a visible oneBug
CADNET-955Hidden layers are ignored when rendering drawingBug
CADNET-952Blank page PNG generated from DXFBug
CADNET-836Exception in a multi-threaded environmentBug
CADNET-772Exception on converting DXF file to PNGBug
CADNET-759DWG file not properly converted to PDFBug
CADNET-750ArgumentNullException is thrown when saving DWG drawing as an image streamBug
CADNET-735ImageLoadException on loading DXFBug
CADNET-635Drawings are not rendered in .NET 4.5 executables (and higher) as 32-bit processBug
CADNET-607CadException: The DGN version is not valid when loading a DGN fileBug
CADNET-606Exception on extracting text from DGN and DWFBug
CADNET-10DWG to PDF conversion is not working properly (AutoCAD 2010)Bug

Public API Changes

Added APIs:

Class         Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPointSet Class         Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPolyline Class         Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPolytriangle Class         Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPolymarker Class         Aspose.CAD.ImageOptions.DwfOptions Field/Enum    Aspose.CAD.FileFormat.OBJ Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadCommon.CustomProperty Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadCommon.CustomPropertyTag Method        Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.FoundLiteral Method        Aspose.CAD.FileFormats.Dwf.DwfPage.#ctor(System.String) Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPointSet.#ctor Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPolyline.#ctor Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPolytriangle.#ctor Method        Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipPolymarker.#ctor Method        Aspose.CAD.IImageLoader.CanLoad(Aspose.CAD.StreamContainer,Aspose.CAD.LoadOptions) Method        Aspose.CAD.ImageOptions.DwfOptions.#ctor Method        Aspose.CAD.ImageOptions.RenderResult.#ctor(System.String,Aspose.CAD.ImageOptions.RenderErrorCode) 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.Dwg.LZ77StreamWriter.DictionaryBytes Property      Aspose.CAD.FileFormats.Dwf.DwfPage.Entities Property      Aspose.CAD.FileFormats.Dwf.DwfPage.MaxPoint Property      Aspose.CAD.FileFormats.Dwf.DwfPage.MinPoint Property      Aspose.CAD.FileFormats.Dwf.Whip.Objects.Drawable.DwfWhipGouraudPointSet.Colors Property      Aspose.CAD.ImageOptions.DwfOptions.TargetDwfInterface Property      Aspose.CAD.ImageOptions.VectorRasterizationOptions.RelativePosition Property      Aspose.CAD.ImageOptions.VectorRasterizationOptions.RelativeScale

Removed APIs

Method        Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.FoundLiteral(System.Int32,System.Int32) Method        Aspose.CAD.ImageOptions.RenderResult.#ctor 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.Dwf.DwfPage.Color Property      Aspose.CAD.FileFormats.Dwf.DwfPage.PlotOrder Method      Aspose.CAD.FileFormats.Cad.Dwg.LZ77StreamWriter.FoundLiteral(System.Int32,System.Int32) Method      Aspose.CAD.ImageOptions.RenderResult.#ctor 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.Dwf.DwfPage.Color Property    Aspose.CAD.FileFormats.Dwf.DwfPage.PlotOrder

Usage examples:

CADNET-839 - Last Author metadata information failed to get extracted

 using (CadImage image = (CadImage) Image.Load(GetFileFromDesktop(fileName1)))

{

    SummaryInfoData summary = image.Header.SummaryInfo;

    Console.WriteLine(summary.Author);

}

CADNET-769 - Support for OBJ format

 using (Aspose.CAD.Image CADDoc = Aspose.CAD.Image.Load(GetFileFromDesktop("example-580-W.obj")))

{

    Aspose.CAD.ImageOptions.CadRasterizationOptions rasterizationOptions =

        new Aspose.CAD.ImageOptions.CadRasterizationOptions();

    rasterizationOptions.PageWidth = CADDoc.Size.Width;

    rasterizationOptions.PageHeight = CADDoc.Size.Height;

    Aspose.CAD.ImageOptions.PdfOptions CADf = new Aspose.CAD.ImageOptions.PdfOptions();

    CADf.VectorRasterizationOptions = rasterizationOptions;

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

}

CADNET-23 - Ability to manipulate hyperlinks in AutoCAD drawings

  using (CadImage cadImage = (CadImage) Image.Load(GetFileFromDesktop("Autocad sample.dwg")))

{

    foreach (CadBaseEntity entity in cadImage.Entities)

    {

        if (entity is CadInsertObject)

        {

            CadBlockEntity block = cadImage.BlockEntities[((CadInsertObject) entity).Name];

            if (!string.IsNullOrEmpty(block.XRefPathName.Value))

            {

                block.XRefPathName.Value = "new file reference.dwg";

            }

        }

		if (entity.Hyperlink == "https://products.aspose.com")

        {

            entity.Hyperlink = "https://www.aspose.com";

        }

    }

}