CadRootPackage

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage

public abstract class CadRootPackage extends RootMetadataPackage

Represents the root package allowing working with metadata in a CAD drawing.

Learn more

This code sample shows how to read metadata of a CAD drawing.

try (Metadata metadata = new Metadata(Constants.InputDxf)) { CadRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getCadPackage().getAcadVersion()); System.out.println(root.getCadPackage().getAuthor()); System.out.println(root.getCadPackage().getComments()); System.out.println(root.getCadPackage().getCreatedDateTime()); System.out.println(root.getCadPackage().getHyperlinkBase()); System.out.println(root.getCadPackage().getKeywords()); System.out.println(root.getCadPackage().getLastSavedBy()); System.out.println(root.getCadPackage().getTitle()); // … }

Methods

Method Description
getCadPackage() Gets the CAD metadata package.

getCadPackage()

public final CadPackage getCadPackage()

Gets the CAD metadata package.

Returns: CadPackage - The CAD metadata package.