Navigation: Scripting Reference Manual > Functions & Subroutines > SetCustomPrism

 

SetCustomPrism

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the data for a specific prism in the FRED document.

 

Syntax

SetCustomPrism n, ptype, entity, prism

 

Parameters

n As Long

Node number of the prism.

 

ptype As String

Will hold the type of prism as one of the following:

"Abbe"

"Amici"

"Cube"

"Equilateral"

"Leman"

"Pechan"

"Penta"

"Reversion"

"Right"

"Corner"

"Fresnel"

"General"

"Porro"

"Schmidt"

"Dove"

"Wedge"

 

entity As T_ENTITY

Structure containing the new generic entity data for the prism.

 

prism as T_PRISMCUSTOM

Structure containing the new optical data specific to the prism.

 

Remarks

This subroutine sets the data for a specific prism in the FRED document. If there is a problem the subroutine sets an error and returns without modifying the FRED document. This subroutine does not allow you to change the geometric parent of the prism, nor does it allow you to change the type of prism.

 

See Also

T_ENTITY

T_PRISMCUSTOM

AddCustomPrism

InitCustomPrism

GetCustomPrism

Examples

Elements

 

 

 

 

 

 

Copyright © Photon Engineering, LLC