Description In the GUI, a file name string is displayed in the Description column next to the "Select File" button in an Encrypted Thin Film coating. When an *.fec file is loaded into an Encrypted Thin Film coating model, the file name string is automatically set to contain the full directory path and name of the *.fec file. This subroutine can be used for two purposes: •Overwrite the displayed file name string without modifying the coating data •Specify the full file path to a *.fec file and import the file into the coating model
Syntax SetEncryptedThinFilmFileName( coat, fname, bImport )
Parameters coat As Long Node number of the coating being modified.
fname As String File name string to be applied to the coating. If bImport is False, then this only modifies the file name string displayed in the GUI. If bImport is True, then this should be the full file path to the *.fec file being imported.
bImport As Boolean Boolean specifying whether the specified fname should be imported into the coating. If the coating prescription is intended to be updated using a *.fec file defined in fname, then bImport should be True.
Examples The example below demonstrates how to update the string name of an Encrypted Thin Film coating model without modifying its thin film prescription.
Sub Main
Dim eCoat As Long eCoat = FindCoating( "Test Encrypted Coating" )
SetEncryptedThinFilmFileName( eCoat, "PE_Proprietary.fec", False )
End Sub
The example below demonstrates how to update the Encrypted Thin Film coating prescription using an *.fec file.
Sub Main
Dim eCoat As Long eCoat = FindCoating( "Test Encrypted Coating" )
SetEncryptedThinFilmFileName( eCoat, "C:\temp\fred\support\PE_Proprietary.fec", True )
End Sub
See Also
AddEncryptedThinFilmCoatingFromData AddEncryptedThinFilmCoatingFromFile GetEncryptedThinFilmIsSubstrateAtLastLayer SetEncryptedThinFilmIsSubstrateAtLastLayer
|