__init__ constructor
Leave feedback
On this page
Initializes a new instance of Layer class.
def __init__(self):
...
Initializes a new Layer instance.
def __init__(self, name):
...
| Parameter | Type | Description |
|---|---|---|
| name | str |
The name of the layer. |
| Raises | Description |
|---|---|
ValueError |
When name is null or empty. |
from groupdocs.viewer.results import Layer
# Create a layer named "WALLS"
layer = Layer("WALLS")
Initializes a new Layer instance.
def __init__(self, name, visible):
...
| Parameter | Type | Description |
|---|---|---|
| name | str |
The name of the layer. |
| visible | bool |
The layer visibility indicator. |
| Raises | Description |
|---|---|
ValueError |
If name is None or empty. |
from groupdocs.viewer.results import Layer
# Render specific layers in a CAD drawing
layers = [
Layer("WALLS"),
Layer("RACKS", visible=True)
]
- class
Layer
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.