Navigation: Scripting Reference Manual > Functions & Subroutines > SetLens

 

SetLens

 

Contact Us: fredsupport@photonengr.com

 

Description

Modifies a singlet lens in the associated FRED document.

 

Syntax

SetLens n, entity, lens

 

Parameters

n As Long

Node number of the lens.

 

entity As T_ENTITY

Structure containing the basic entity data for the lens.

 

lens as T_LENS

Structure containing the new optical data specific to the lens.

 

Remarks

This subroutine modifies a singlet lens in the associated FRED document. If there is a problem the subroutine sets an error and returns without modifying the singlet.

 

See Also

T_ENTITY

T_LENS

AddLens

InitLens

GetLens

Examples

Elements

 

 

 

 

 

Copyright © Photon Engineering, LLC