CadViewInfo
Leave feedback
On this page
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.
| Method | Description |
|---|---|
| getLayers() | Retrieves the list of layers in the CAD drawing. |
| setLayers(List |
Sets the list of layers in the CAD drawing. |
| getLayouts() | Retrieves the list of layouts contained within the CAD drawing. |
| setLayouts(List |
Sets the list of layouts contained within the CAD drawing. |
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.
public abstract void setLayers(List<Layer> layers)
Sets the list of layers in the CAD drawing.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layers | java.util.List<com.groupdocs.viewer.results.Layer> | the layers to set for the CAD drawing. |
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.
public abstract void setLayouts(List<Layout> layouts)
Sets the list of layouts contained within the CAD drawing.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layouts | java.util.List<com.groupdocs.viewer.results.Layout> | the layouts to set for the CAD drawing. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.