Home/ Reference/ Layer & Shapes

layer.Visible / .Printable / .Editable

Three switches: visible, printable, editable. A handy pattern — put construction lines on their own layer and set Visible=False.

Signature

layer.Visible / .Printable / .Editable

Notes

Three switches: visible, printable, editable. A handy pattern — put construction lines on their own layer and set Visible=False.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
layer = doc.ActivePage.ActiveLayer

layer.Visible   = True     # visibility
layer.Printable = True     # printed or not
layer.Editable  = True     # editable or locked

# handy pattern: put guides on their own layer, hide it, and they never print
# layer.Visible = False
print("Visible: ", layer.Visible, " printable: ", layer.Printable)

About this section: Layer & Shapes

Layer & Shapes — layers and shape creation.

Other entries in this section