public interface CadViewInfo extends ViewInfo
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.
Viewer| Modifier and Type | Method and Description |
|---|---|
List<Layer> |
getLayers()
Retrieves the list of layers in the CAD drawing.
|
List<Layout> |
getLayouts()
Retrieves the list of layouts contained within the CAD drawing.
|
void |
setLayers(List<Layer> layers)
Sets the list of layers in the CAD drawing.
|
void |
setLayouts(List<Layout> layouts)
Sets the list of layouts contained within the CAD drawing.
|
getFileType, getPages, setFileType, setPagesList<Layer> getLayers()
Retrieves the list of layers in the CAD drawing.
LayerList<Layout> getLayouts()
Retrieves the list of layouts contained within the CAD drawing.
Layoutvoid setLayers(List<Layer> layers)
layers - the layers to set for the CAD drawing.Copyright © 2024. All rights reserved.