CadOptionsLayers Property
The list of document layers to render.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.5
Syntax
public List<string> Layers { get; set; }

Property Value

Type: ListString
Remarks
When the list is empty, all visible layers will be rendered. Layer names are case sensitive.
Examples
The following example demonstrates how to render specific layers from CAD drawing.
C#
ViewerImageHandler imageHandler = new ViewerImageHandler();
ImageOptions options = new ImageOptions();
options.CadOptions.Layers.Add("LayerName");

string guid = "multilayer.dwg";
List<PageImage> pages = imageHandler.GetPages(guid, options);
See Also