Navigation: Scripting Reference Manual > Functions & Subroutines > SetEncryptedThinFilmIsSubstrateAtLastLayer

 

SetEncryptedThinFilmIsSubstrateAtLastLayer

 

Contact Us: fredsupport@photonengr.com

 

Description

This subroutine allows the coating orientation of an Encrypted Thin Film coating to be manually specified.  When an Encrypted Thin Film coating is created, the orientation of the film is automatically set (it is specified in the encrypted *.fec file).  If, however, the orientation in the *.fec file is determined to be incorrect (due to human error), this script command allows the orientation to be manually specified.

 

Syntax

SetEncryptedThinFilmIsSubstrateAtLastLayer( coat, isLast )

 

Parameters

coat As Long

Node number of the coating being modified.

 

isLast As Boolean

Specifies the orientation of the thin film coating stack with respect to the substrate.  When True, the substrate is at the last layer of the thin film stack.  When False, the substrate is at the first layer of the thin film stack.

 

 

Examples

The example below demonstrates how to manually set the orientation of an Encrypted Thin Film coating so that the substrate is at the first layer.

 

Sub Main

 

    Dim eCoat As Long

    eCoat = FindCoating( "Test Encrypted Coating" )

 

    SetEncryptedThinFilmIsSubstrateAtLastLayer( eCoat, False )

 

End Sub

 

 

See Also

Coating Script Commands

 

AddEncryptedThinFilmCoatingFromData

AddEncryptedThinFilmCoatingFromFile

GetEncryptedThinFilmFileName

GetEncryptedThinFilmIsSubstrateAtLastLayer

SetEncryptedThinFilmFileName

 

 

 

 

 

Copyright © Photon Engineering, LLC