Navigation: Scripting Reference Manual > Functions & Subroutines > AddThinFilmLayer

 

AddThinFilmLayer

 

Contact Us: fredsupport@photonengr.com

 

Description

Appends a layer to a thin film coating in the associated FRED document.

 

Syntax

number = AddThinFilmLayer ( id, thickness, material, repeatCount )

 

Parameters

number (Long)

The number of total layers in the thin film.

 

id As Long

Identifier of the thin film coating.

 

thickness As Double

The thickness of the new layer.

 

material As Long

Identifier of the material to use for the layer.

 

repeatCount As Long

The group repeat count.

 

Remarks

This function appends a layer to a thin film coating in the associated FRED document.  If the repeat count is greater than zero, the added layer begins the definition of a new group of layers.  The entire group as a single unit will repeated the given number of times.  If the repeat count is zero, then the layer is appended to the current group.

 

If there is a problem the function sets an error and returns -1.

 

See Also

AddThinFilmCoating

GetThinFilmCoatingParameters

SetThinFilmCoatingParameters

GetThinFilmIthLayer

SetThinFilmIthLayer

DeleteThinFilmIthLayer

GetThinFilmLayerCount

Examples

Coating

 

 

 

 

 

Copyright © Photon Engineering, LLC