Aspose.CAD for .NET 19.2 - Release Notes

KeySummaryCategory
CADNET-702Error converting DWG in PDFFeature
CADNET-638Investigate dimension samples with incorrect text positionFeature
CADNET-19Convert/Export images to DXF file formatesFeature
CADNET-67Export to layered PDFFeature
CADNET-714Implement InsertionPoint reading for all types of Dimensions for DXF/DWG formatFeature
CADNET-713Export MInserts in 3DFeature
CADNET-757Option for setting locale in applicationFeature
CADNET-712Distinguish between DWT and DWG formats from provided drawing streamFeature
CADNET-409Get model area & font renderingFeature
CADNET-711Improve dimensions renderingEnhancement
CADNET-721DWF file not properly converted to PDFEnhancement
CADNET-736DWG file not properly converted to PDFEnhancement
CADNET-716Improve Leader rendering to fully support 3D, optimize Leader renderingEnhancement
CADNET-692Image loading failedEnhancement
CADNET-7340 Width and Height is return for CAD ImageEnhancement
CADNET-61PDF-files are damaged after exportEnhancement
CADNET-735ImageLoadException on loading DXFEnhancement
CADNET-758Loading CadPolyline3D from DWGEnhancement
CADNET-708DWG file not properly converted to PDFEnhancement
CADNET-753Exception on converting DWG to PNGEnhancement
CADNET-728ImageLoadException on loading DWGEnhancement
CADNET-712Distinguish between DWT and DWG formats from provided drawing streamEnhancement
CADNET-723DWF file not properly converted to PDFEnhancement
CADNET-575DWG to PDF not properly convertedEnhancement
CADNET-632DWG not properly converted to PDFEnhancement
CADNET-637DWG not properly converted to PDFEnhancement
CADNET-757Option for setting locale in applicationEnhancement
CADNET-243Code refactoring and improvementsEnhancement
CADNET-349When DXF or DWG is converted to PDF, output is blank.Enhancement
CADNET-754CadStringParameter values missingEnhancement
CADNET-687Exception on loading CADEnhancement
CADNET-755Exception when converting DWG to PDFEnhancement
CADNET-713Export MInserts in 3DEnhancement
CADNET-714Implement InsertionPoint reading for all types of Dimensions for DXF/DWG formatEnhancement
CADNET-710File can not be opened with AcrobatEnhancement
CADNET-375Not implemented 3D entities for DGN throws exceptionEnhancement
CADNET-725DWF file not properly converted to PDFEnhancement
CADNET-629Exception on exporting 3D DXF to PDFEnhancement
CADNET-682Fix text shift problemEnhancement
CADNET-685Exception on loading DWF FileEnhancement
CADNET-738Exporting DWG with single page to PDF results in multiple pagesEnhancement
CADNET-745Incorrect viewport is renderedEnhancement
CADNET-724DWF file not properly converted to PDFEnhancement
CADNET-720Exception on loading fileEnhancement
CADNET-722DWF file not properly converted to PDFEnhancement
CADNET-9CAD to PDF: Resultant PDF is corrupted & emptyEnhancement
CADNET-669Rendering of the specific CAD drawing is very slowEnhancement
CADNET-756Memory usage issueEnhancement
CADNET-263DWG to Raster conversion is not working properlyEnhancement
CADNET-409Get model area & font renderingEnhancement

Public API Changes

Added APIs:

Class         Aspose.CAD.FileFormats.Cad.CadAcdsList Class         Aspose.CAD.FileFormats.Cad.CadConsts.CadAcdsTypeName Class         Aspose.CAD.FileFormats.Cad.CadObjects.CadAcdsData Class         Aspose.CAD.FileFormats.Cad.CadObjects.CadAcdsRecord Class         Aspose.CAD.FileFormats.Cad.CadObjects.CadAcdsSchema Class         Aspose.CAD.FileFormats.Cad.CadObjects.CadBaseAcds Class         Aspose.CAD.FileFormats.Cad.CadObjects.CadGraphicsDataContainer Field/Enum    Aspose.CAD.FileFormat.DwtCadR010 Field/Enum    Aspose.CAD.FileFormat.DwtCadR012 Field/Enum    Aspose.CAD.FileFormat.DwtCadR014 Field/Enum    Aspose.CAD.FileFormat.DwtCadR015 Field/Enum    Aspose.CAD.FileFormat.DwtCadR021 Field/Enum    Aspose.CAD.FileFormat.DwtCadR0221 Field/Enum    Aspose.CAD.FileFormat.DwtCadR0222 Field/Enum    Aspose.CAD.FileFormat.DwtCadR025 Field/Enum    Aspose.CAD.FileFormat.DwtCadR026 Field/Enum    Aspose.CAD.FileFormat.DwtCadR10 Field/Enum    Aspose.CAD.FileFormat.DwtCadR11 Field/Enum    Aspose.CAD.FileFormat.DwtCadR13 Field/Enum    Aspose.CAD.FileFormat.DwtCadR14 Field/Enum    Aspose.CAD.FileFormat.DwtCadR2000 Field/Enum    Aspose.CAD.FileFormat.DwtCadR2004 Field/Enum    Aspose.CAD.FileFormat.DwtCadR2007 Field/Enum    Aspose.CAD.FileFormat.DwtCadR2010 Field/Enum    Aspose.CAD.FileFormat.DwtCadR2013 Field/Enum    Aspose.CAD.FileFormat.DwtCadR9 Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadAcadVersion.AC1027 Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadAcadVersion.AC1032 Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadAcdsTypeName.ACDSDATA Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadAcdsTypeName.ACDSRECORD Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadAcdsTypeName.ACDSSCHEMA Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadAcdsTypeName.NONE Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadEntityTypeName.GRAPHICSDATACONTAINER Field/Enum    Aspose.CAD.FileFormats.Cad.CadConsts.CadSectionType.ACDSDATA Field/Enum    Aspose.CAD.FileFormats.Cad.CadEntityAttribute.Cad101 Method        Aspose.CAD.FileFormats.Cad.CadAcdsList.#ctor Method        Aspose.CAD.FileFormats.Cad.CadAcdsList.Clone Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadAcdsData.#ctor Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadAcdsRecord.#ctor Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadAcdsSchema.#ctor Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadBaseAcds.#ctor Method        Aspose.CAD.FileFormats.Cad.CadObjects.CadGraphicsDataContainer.#ctor Method        Aspose.CAD.FileFormats.Cad.DxfWriter.WriteAcds(Aspose.CAD.StreamContainer,Aspose.CAD.FileFormats.Cad.CadImage) Method        Aspose.CAD.Image.GetAttributeValue(System.String) Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,[1]  ) Property      Aspose.CAD.FileFormats.Cad.CadImage.CadAcds Property      Aspose.CAD.FileFormats.Cad.CadObjects.CadBaseAcds.ChildObjects Property      Aspose.CAD.FileFormats.Cad.CadObjects.CadBaseAcds.TypeName Property      Aspose.CAD.FileFormats.Cad.CadObjects.CadMText.FullText Property      Aspose.CAD.FileFormats.Ifc.IfcImage.Attributes Property      Aspose.CAD.Image.Attributes

Removed APIs

Class         Aspose.CAD.Extensions.FileFormatExtensions Class         Aspose.CAD.FileFormats.Cad.CadObjects.UnderlayDefinition.CadPdfUnderlayDefinition Method        Aspose.CAD.Extensions.FileFormatExtensions.IsSingleFormatDefined(Aspose.CAD.FileFormat) Method        Aspose.CAD.FileFormats.Cad.CadObjects.UnderlayDefinition.CadPdfUnderlayDefinition.#ctor Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,  ) Class         Aspose.CAD.Extensions.FileFormatExtensions Class         Aspose.CAD.FileFormats.Cad.CadObjects.UnderlayDefinition.CadPdfUnderlayDefinition Method        Aspose.CAD.Extensions.FileFormatExtensions.IsSingleFormatDefined(Aspose.CAD.FileFormat) Method        Aspose.CAD.FileFormats.Cad.CadObjects.UnderlayDefinition.CadPdfUnderlayDefinition.#ctor Method        Aspose.CAD.Xmp.XmpPackage.SetValue(System.String,  )

Usage examples:

CADNET-19 Convert/Export images to DXF file formates

  • Set new font
  • Hide entities
  • Update text
 foreach(var file in new DirectoryInfo(filesDir).EnumerateFiles("*.dxf")) {

 // ****************************

 //  Set new font per document

 // ****************************

 using(var cadImage = (CadImage) Image.Load(file.FullName)) {

  // Iterate over the items of CadStyleTableObject

  foreach(CadStyleTableObject style in cadImage.Styles) {

   // Set font name

   style.PrimaryFontName = "Broadway";

  }

  cadImage.Save(file.FullName + "_font.dxf");

 }

 // ****************************

 //  Hide all "straight" lines

 // ****************************

 using(var cadImage = (CadImage) Image.Load(file.FullName)) {

  foreach(var entity in cadImage.Entities) {

   // Make lines invisible

   if (entity.TypeName == CadEntityTypeName.LINE) {

    entity.Visible = 0;

   }

  }

  cadImage.Save(file.FullName + "_lines.dxf");

 }

 // ****************************

 //  Manipulations with text

 // ****************************

 using(var cadImage = (CadImage) Image.Load(file.FullName)) {

  foreach(var entity in cadImage.Entities) {

   if (entity.TypeName == CadEntityTypeName.TEXT) {

    ((CadText) entity).DefaultValue = "New text here!!! :)";

    break;

   }

  }

  cadImage.Save(file.FullName + "_text.dxf");

 }

}

CADNET-712 Distinguish between DWT and DWG formats from provided drawing stream

 var formatTypeDwt = Image.GetFileFormat(GetFileFromDesktop("sample.dwt"));

Assert.IsTrue(formatTypeDwt.ToString().ToLower().Contains("dwt"));

var formatTypeDwg = Image.GetFileFormat(GetFileFromDesktop("sample.dwg"));

Assert.IsTrue(formatTypeDwg.ToString().ToLower().Contains("dwg"));