Navigation: Scripting Reference Manual > Functions & Subroutines > AddGeneralCoating

 

AddGeneralCoating

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a General Sampled Coating to the associated FRED document.

 

Syntax

id = AddGeneralCoating ( cname, wavelength, angle, coat )

 

Parameters

id (Long)

Identifier of the newly added General Coating.

 

cname As String

The name for the new General Coating.

 

wavelength As Double

The first wavelength of the General Coating.

 

angle As Double

The first angle of the General Coating.

 

coat As T_GENERALCOATINGITEM

Holds the power and phase data that describes a General Coating.

 

Remarks

This function adds a General Sampled Coating to the associated FRED document. Once the General Coating is successfully added,  extra Wavelength-Angle data points can be added with AddGeneralCoatingWavelength and AddGeneralCoatingAngle. If AddGeneralCoating fails, it  returns -1 and may or may not set an error.

 

See Also

T_GENERALCOATINGITEM

AddGeneralCoatingWavelength

AddGeneralCoatingAngle

DeleteGeneralCoatingWavelength

DeleteGeneralCoatingAngle

GetGeneralCoatingAngleCount

GetGeneralCoatingAngleSpec

GetGeneralCoatingIthAngle

GetGeneralCoatingIthWavelength

GetGeneralCoatingWavelengthCount

GetGeneralCoatingCoefficients

SetGeneralCoatingAngleSpec

SetGeneralCoatingCoefficients

Examples

Coatings

 

 

 

 

 

Copyright © Photon Engineering, LLC