Layer class

Layer class

Represents a layer contained in the CAD drawing.

The Layer type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the Layer class.
init Initializes a new Layer instance.
init Initializes a new Layer instance.

Methods

Method Description
equals Determines whether the current Layer is the same as the specified Layer object.
equals Checks whether the current Layer is equal to the specified object.
equals_layer
equals_object
get_hash_code Returns the hash code for the current Layer object.
to_string Returns a string that represents the current object.

Properties

Property Description
name The name of the layer.
visible The layer visibility indicator.

Example

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PdfViewOptions
from groupdocs.viewer.results import Layer

with Viewer("sample.dwg") as viewer:
    options = PdfViewOptions("output.pdf")
    options.cad_options.layers = [Layer("QUADRANT")]
    viewer.view(options)

See Also