ScrSetLayerVisibility

Sets the visibility of the specified layer, or of specific object types on that layer.

UI Command:   Select a layer in the Layers Workspace. Turn on visibility for the layer or for specific object types using the check boxes.
Syntax:   obj.ScrSetLayerVisibility(<layerNameBstr>, <planeVis>, <traceVis>, <padVis>, <viaVis>, <cktElemVis>)
Parameters:  

BSTR layerNameBstr

BOOL planeVis (TRUE = planes visible; FALSE = planes not visible)

BOOL traceVis (TRUE = traces visible; FALSE = traces not visible)

BOOL padVis (TRUE = pads visible; FALSE = pads not visible)

BOOL viaVis (TRUE = vias visible; FALSE = vias not visible)

BOOL cktElemVis (TRUE = circuit elements visible; FALSE = circuit elements not visible)

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

'Make planes, traces, pads, and vias on layer L1 visible, but not circuit elements'

outcome is TRUE on success, FALSE if specified layer could not be located.

outcome = obj.ScrSetLayerVisibility( "L1", True, True, True, True, False)

IPY Example:  

oDoc.ScrSetLayerVisibility('L1', True, True, True, True, False)