add_layer_on_top (stack_index : integer; layer_type,material:string;thickness:real number; thickness_unit : string)

Navigation:  User guide > OLE automation > Methods >

add_layer_on_top (stack_index : integer; layer_type,material:string;thickness:real number; thickness_unit : string)

Previous pageReturn to chapter overviewNext page

A new layer is added on top of the current layer stack with index 'stack_index' in the list of layer stacks (stacks are counted 1, 2, 3, ...).

 

The type of the layer is specified by the string 'layer_type'. Possible types are

'Thin film' (coherent superposition of partial waves)

'Thick layer' (incoherent superposition of partial waves)

 

The material assignment is given by the 'material' parameter. If the wanted material is found in the list of materials, it is taken from there. If not, the database is searched for the requested material. In the case of success, the material is transferred from the database to the list of materials and used for the layer stack assignment.

 

The thickness of the new layer is specified by the paramters 'thickness' (a real number) and 'thickness_unit' (a string). Possible values for the thickness unit are

'nm'

'micron'

'mm'

'm'

 

VisualBasic examples:

 

  Call wcd.add_layer_on_top(1, "Thin film", "Si3N4", 0.45, "micron")

  Call wcd.add_layer_on_top(1, "Thin film", "Ag (JC)", 19.4, "nm")