Home/ Reference/ Layer & Shapes

layer.Activate()

Makes this the active layer.

Signature

layer.Activate()

Notes

Makes this the active layer.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
layer = doc.ActivePage.Layers.Item(1)
layer.Activate()                    # make it the active layer

print("Active layer: ", doc.ActiveLayer.Name)

About this section: Layer & Shapes

Layer & Shapes — layers and shape creation.

Other entries in this section