CadViewInfo

All Implemented Interfaces: com.groupdocs.viewer.results.ViewInfo

public interface CadViewInfo extends ViewInfo

Represents view information for a CAD drawing.

The CadViewInfo interface defines the contract for retrieving view information specific to a CAD drawing in the GroupDocs.Viewer component. It provides methods to access to CAD drawings layers.

Example usage:


 try (Viewer viewer = new Viewer("document.plt")) {
     CadViewInfo viewInfo = (CadViewInfo) viewer.getViewInfo(ViewInfoOptions.forHtmlView());

     // Use the viewInfo object for further operations
 }
 

Note: The default implementation of this interface is CadViewInfoImpl.

Methods

Method Description
getLayers() Retrieves the list of layers in the CAD drawing.
getLayouts() Retrieves the list of layouts contained within the CAD drawing.

getLayers()

public abstract List<Layer> getLayers()

Retrieves the list of layers in the CAD drawing.

Returns: java.util.List<com.groupdocs.viewer.results.Layer> - the layers in the CAD drawing.

getLayouts()

public abstract List<Layout> getLayouts()

Retrieves the list of layouts contained within the CAD drawing.

Returns: java.util.List<com.groupdocs.viewer.results.Layout> - the layouts in the CAD drawing.