Browse our Products

Aspose.CAD for Java 19.2 - Release Notes

KeySummaryCategory
CADJAVA-133Support for exporting DWG to SVG formatFeature
CADJAVA-471Convert/Export images to DXF file formatesFeature
CADJAVA-472Support export to layered PDFFeature
CADJAVA-477Distinguish between DWT and DWG formats from provided drawing streamFeature
CADJAVA-419VERTEX, SEQEND Cad060Enhancement
CADJAVA-427Verify reading of CadLeader for DWGEnhancement
CADJAVA-418HATCH Boundary Path Data Group code 93Enhancement
CADJAVA-416DWG to PDF not properly convertedEnhancement
CADJAVA-394DWG to PDF not properly convertedEnhancement
CADJAVA-155Writing tests for reading SummaryInfoEnhancement
CADJAVA-121Exception when converting DWG to PDFEnhancement
CADJAVA-405Cad3DSolid not all data loadedEnhancement
CADJAVA-117CadStringParameter values missingEnhancement
CADJAVA-36Converting DXF to PDF is showing empty pages in PDFEnhancement
CADJAVA-39Converting DXF to PNG is not generating the correct outputEnhancement
CADJAVA-417BLOCK_RECORD and BLOCK. not loaded block nameEnhancement
CADJAVA-415XRECORD groups code 1-369Enhancement
CADJAVA-406Exception on loading DWFEnhancement
CADJAVA-473DWF file not properly converted to PDFEnhancement
CADJAVA-137When DXF or DWG is converted to PDF, output is blankEnhancement
CADJAVA-420Add MLINESTYLEEnhancement
CADJAVA-403Loading CadPolyline3D from DWGEnhancement
CADJAVA-408LAYER not set group code 390Enhancement
CADJAVA-430VIEW. Not set name of viewEnhancement
CADJAVA-466Port Aspose.CAD 19.2 to JavaEnhancement
CADJAVA-162DWG file not properly converted to PDFEnhancement
CADJAVA-201Investigate PlaneSurface entity for DWG formatEnhancement
CADJAVA-206FIPs Compliant version of Bouncy Castle usage in APIsEnhancement
CADJAVA-358Image load exception on loading DWF fileEnhancement
CADJAVA-35DXF to PDF conversion is producing empty pagesEnhancement
CADJAVA-351DWG not properly converted to PDFEnhancement
CADJAVA-352Option for setting locale in applicationEnhancement
CADJAVA-412HATCH not set group codes 421, 463, 63Enhancement
CADJAVA-468Exporting DWG with single page to PDF results in multiple pagesEnhancement
CADJAVA-469Exception on exporting 3D DXF to PDFEnhancement
CADJAVA-423LAYER name wrong encodingEnhancement
CADJAVA-470CAD to PDF: Resultant PDF is corrupted & emptyEnhancement
CADJAVA-157DWG not properly converted to PDFEnhancement
CADJAVA-49Implement size estimation for 3D drawingsEnhancement
CADJAVA-479ImageLoadException on loading DXFEnhancement
CADJAVA-475Implement InsertionPoint reading for all types of Dimensions for DXF/DWG formatEnhancement
CADJAVA-476Exception on loading CADEnhancement
CADJAVA-478ImageLoadException on loading DWGEnhancement
CADJAVA-480ImageLoadException: Image loading failed while loading a multi-page Tiff imageEnhancement
CADJAVA-413MSJDK does not draw bezier curvesEnhancement
CADJAVA-429LTYPE Pointer to STYLE objectEnhancement
CADJAVA-424Not loaded UNDERLAYDEFINITION objectsEnhancement
CADJAVA-395Section LAYOUT not set group codes 331 and 330Enhancement
CADJAVA-398Section STYLE. Wrong value for the groups code 70Enhancement
CADJAVA-341Exception on converting DWG to PNGEnhancement
CADJAVA-431The name of the UCS not read from DWGEnhancement
CADJAVA-397Section SEQEND  not correctly locatedEnhancement
CADJAVA-399Wrong codes in the HEADERS sectionsEnhancement
CADJAVA-421ACSH_HISTORY_CLASS not all values loadedEnhancement
CADJAVA-464ArgumentException when loading image under MonoEnhancement
CADJAVA-393Memory usage issueEnhancement
CADJAVA-153Get model area & font renderingEnhancement

Added APIs:

Class         com.aspose.cad.fileFormats.cad.cadAcdsList Class         com.aspose.cad.fileFormats.cad.cadConsts.cadAcdsTypeName Class         com.aspose.cad.fileFormats.cad.cadObjects.cadAcdsData Class         com.aspose.cad.fileFormats.cad.cadObjects.cadAcdsRecord Class         com.aspose.cad.fileFormats.cad.cadObjects.cadAcdsSchema Class         com.aspose.cad.fileFormats.cad.cadObjects.cadBaseAcds Class         com.aspose.cad.fileFormats.cad.cadObjects.cadGraphicsDataContainer Field/Enum    com.aspose.cad.fileFormat.dwtCadR010 Field/Enum    com.aspose.cad.fileFormat.dwtCadR012 Field/Enum    com.aspose.cad.fileFormat.dwtCadR014 Field/Enum    com.aspose.cad.fileFormat.dwtCadR015 Field/Enum    com.aspose.cad.fileFormat.dwtCadR021 Field/Enum    com.aspose.cad.fileFormat.dwtCadR0221 Field/Enum    com.aspose.cad.fileFormat.dwtCadR0222 Field/Enum    com.aspose.cad.fileFormat.dwtCadR025 Field/Enum    com.aspose.cad.fileFormat.dwtCadR026 Field/Enum    com.aspose.cad.fileFormat.dwtCadR10 Field/Enum    com.aspose.cad.fileFormat.dwtCadR11 Field/Enum    com.aspose.cad.fileFormat.dwtCadR13 Field/Enum    com.aspose.cad.fileFormat.dwtCadR14 Field/Enum    com.aspose.cad.fileFormat.dwtCadR2000 Field/Enum    com.aspose.cad.fileFormat.dwtCadR2004 Field/Enum    com.aspose.cad.fileFormat.dwtCadR2007 Field/Enum    com.aspose.cad.fileFormat.dwtCadR2010 Field/Enum    com.aspose.cad.fileFormat.dwtCadR2013 Field/Enum    com.aspose.cad.fileFormat.dwtCadR9 Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadAcadVersion.aC1027 Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadAcadVersion.aC1032 Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadAcdsTypeName.aCDSDATA Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadAcdsTypeName.aCDSRECORD Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadAcdsTypeName.aCDSSCHEMA Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadAcdsTypeName.nONE Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadEntityTypeName.gRAPHICSDATACONTAINER Field/Enum    com.aspose.cad.fileFormats.cad.cadConsts.cadSectionType.aCDSDATA Field/Enum    com.aspose.cad.fileFormats.cad.cadEntityAttribute.cad101 Method        com.aspose.cad.fileFormats.cad.cadAcdsList.#ctor Method        com.aspose.cad.fileFormats.cad.cadAcdsList.clone Method        com.aspose.cad.fileFormats.cad.cadObjects.cadAcdsData.#ctor Method        com.aspose.cad.fileFormats.cad.cadObjects.cadAcdsRecord.#ctor Method        com.aspose.cad.fileFormats.cad.cadObjects.cadAcdsSchema.#ctor Method        com.aspose.cad.fileFormats.cad.cadObjects.cadBaseAcds.#ctor Method        com.aspose.cad.fileFormats.cad.cadObjects.cadGraphicsDataContainer.#ctor Method        com.aspose.cad.fileFormats.cad.dxfWriter.writeAcds(com.aspose.cad.streamContainer,com.aspose.cad.fileFormats.cad.cadImage) Method        com.aspose.cad.image.getAttributeValue(System.string) Method        com.aspose.cad.xmp.xmpPackage.setValue(System.string,[1]   ) Property      com.aspose.cad.fileFormats.cad.cadImage.cadAcds Property      com.aspose.cad.fileFormats.cad.cadObjects.cadBaseAcds.childObjects Property      com.aspose.cad.fileFormats.cad.cadObjects.cadBaseAcds.typeName Property      com.aspose.cad.fileFormats.cad.cadObjects.cadMText.fullText Property      com.aspose.cad.fileFormats.ifc.ifcImage.attributes Property      com.aspose.cad.image.attributes

Removed APIs:

Class         com.aspose.cad.extensions.fileFormatExtensions Class         com.aspose.cad.fileFormats.cad.cadObjects.underlayDefinition.cadPdfUnderlayDefinition Method      com.aspose.cad.extensions.fileFormatExtensions.isSingleFormatDefined(com.aspose.cad.fileFormat) Method      com.aspose.cad.fileFormats.cad.cadObjects.underlayDefinition.cadPdfUnderlayDefinition.#ctor Method      com.aspose.cad.xmp.xmpPackage.setValue(System.string,) Class         com.aspose.cad.extensions.fileFormatExtensions Class         com.aspose.cad.fileFormats.cad.cadObjects.underlayDefinition.cadPdfUnderlayDefinition Method      com.aspose.cad.extensions.fileFormatExtensions.isSingleFormatDefined(com.aspose.cad.fileFormat) Method      com.aspose.cad.fileFormats.cad.cadObjects.underlayDefinition.cadPdfUnderlayDefinition.#ctor Method      com.aspose.cad.xmp.xmpPackage.setValue(System.string,)

Usage examples:

CADJAVA-477 Distinguish between DWT and DWG formats from provided drawing stream

 String fileName2 = "Sample.dwg";

String fileName3 = "sample.dwt";

String fileName4 = "sample.dxf";

long formatType2 = Image.getFileFormat(GetFileFromDesktop(fileName2));

Assert.IsTrue(formatType2 >= FileFormat.CadR010 && formatType2 <= FileFormat.CadR2013);

long formatType3 = Image.getFileFormat(GetFileFromDesktop(fileName3));

Assert.IsTrue(formatType2 >= FileFormat.DwtCadR010 && formatType2 <= FileFormat.DwtCadR2013);

long formatType4 = Image.getFileFormat(GetFileFromDesktop(fileName4));

Assert.IsTrue(formatType2 >= FileFormat.DXFCadR010 && formatType2 <= FileFormat.DXFCadR2013);

CADJAVA-471 Convert/Export images to DXF file formates

  • Set new font
  • Hide entities
  • Update text
  for (File file : (new File(filesDir)).listFiles(new MaskedFileFilter("*.dxf")))

{

    Save(file.getAbsolutePath(), FileFormat.Pdf, file.getAbsolutePath() + "_etalon.pdf");

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

    //  Set new font per document

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

    CadImage cadImage = (CadImage)Image.load(file.getAbsolutePath());

    for (Object __dummyForeachVar0 : cadImage.getStyles())

    {

        // Iterate over the items of CadStyleTableObject

        CadStyleTableObject style = (CadStyleTableObject)__dummyForeachVar0;

        // Set font name

        style.setPrimaryFontName("Broadway");

    }

    cadImage.save(file.getAbsolutePath() + "_font.dxf");

    Save(file.getAbsolutePath() + "_font.dxf", FileFormat.Pdf, file.getAbsolutePath() + "_font.pdf");

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

    //  Hide all "straight" lines

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

    cadImage = (CadImage)Image.load(file.getAbsolutePath());

    for (CadBaseEntity entity : cadImage.getEntities())

    {

        // Make lines invisible

        if (entity.getTypeName() == CadEntityTypeName.LINE)

        {

            entity.setVisible((short)0);

        }

    }

    cadImage.save(file.getAbsolutePath() + "_lines.dxf");

    Save(file.getAbsolutePath() + "_lines.dxf", FileFormat.Pdf, file.getAbsolutePath() + "_lines.pdf");

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

    //  Manipulations with text

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

    cadImage = (CadImage)Image.load(file.getAbsolutePath());

    for (CadBaseEntity  entity : cadImage.getEntities())

    {

        if (entity.getTypeName() == CadEntityTypeName.TEXT)

        {

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

            break;

        }

    }

    cadImage.save(file.getAbsolutePath() + "_text.dxf");

    Save(file.getAbsolutePath() + "_text.dxf", FileFormat.Pdf, file.getAbsolutePath() + "_text.pdf");

}