Navigation: Scripting Reference Manual > Functions & Subroutines > AddEncryptedThinFilmCoatingFromFile

 

AddEncryptedThinFilmCoatingFromFile

 

Contact Us: fredsupport@photonengr.com

 

Description

This function adds a new Encrypted Thin Film coating model using data from a *.fec file and returns the node number of the coating that was added to the object tree.

 

 

Syntax

ecNode = AddEncryptedThinFilmCoatingFromFile( ecName, fecFile )

 

Parameters

ecNode (Long)

Returned node number of the Encrypted Thin Film coating that was added.

 

ecName As String

Name of the coating being created.  If an empty string is used (i.e. ""), then the coating name stored in the *.fec file data will be used.

 

fecFile As String

Full file path to the *.fec file that will be used to generate the Encrypted Thin Film coating model.  The *.fec file containing the encrypted data will need to have been previously generated by FRED.  Refer to the Encrypted Thin Film Coating help topic for more information.

 

Example

The example below demonstrates how to create a new Encrypted Thin Film coating model from a *.fec file.  An empty string name is provided, so the coating name is pulled from the encrypted *.fec file data.

 

Sub Main

 

    Dim ec As Long

    Dim ecFile As String

    ecFile = "C:\temp\fred\support\EncryptedCoatingTest.fec"

 

    ec = AddEncryptedThinFilmCoatingFromFile( "", ecFile )

    Update

 

End Sub

 

See Also

Coating Script Commands

Encrypted Thin Film Coating

 

AddEncryptedThinFilmCoatingFromData

GetEncryptedThinFilmFileName

GetEncryptedThinFilmIsSubstrateAtLastLayer

SetEncryptedThinFilmFileName

SetEncryptedThinFilmIsSubstrateAtLastLayer

 

 

 

 

 

Copyright © Photon Engineering, LLC