Navigation: Scripting Reference Manual > Functions & Subroutines > AddLens

 

AddLens

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a lens to the associated FRED document.

 

Syntax

n = AddLens ( entity, lens )

 

Parameters

n (Long)

Node number of the newly added lens.

 

entity As T_ENTITY

Holds the basic entity data for the new lens.

 

lens as T_LENS

Structure containing optical data specific to the new lens.

 

 

Remarks

This function adds a lens to the associated FRED document. If there is a problem the function sets an error and returns -1 without modifying the associated FRED document.

 

See Also

T_ENTITY

T_LENS

InitLens

GetLens

SetLens

GetLensCurv1

SetLensCurv1

GetLensCurv2

SetLensCurv2

GetLensFocalLen

SetLensFocalLen

GetLensBending

SetLensBending

Examples

Elements

 

 

 

 

 

Copyright © Photon Engineering, LLC