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 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 Determines whether the current Layer is the same as the specified 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.results import Layer

# Specify layers to render when viewing a CAD file
layers = [
    Layer("WALLS"),
    Layer("RACKS")
]

See Also