ScrSetLayerMaterial

Assigns a specified material to a specified layer.

UI Command:   Home > Layer stackup Editor. Click Edit Layer Properties. Select a material from the Material drop-down menu.
Syntax:   obj.ScrSetLayerMaterial(<layerNameBstr>, <layerMaterialBstr>)
Parameters:  

BSTR layerNameBstr

BSTR layerMaterialBstr

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

' outcome is TRUE on success, FALSE if specified layer or material could not be located

outcome = obj.ScrSetLayerMaterial ( "SURFACE", "copper" )

IPY Example:  

oDoc.ScrSetLayerMaterial('SURFACE', 'copper')