Navigation: Scripting Reference Manual > Functions & Subroutines > AddSource

 

AddSource

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a new source with default values to the associated FRED document.

 

Syntax

n = AddSource ( data )

 

Parameters

n (Long)

Node number of the new source.

 

data As T_ENTITY

Holds the basic data (name, description, etc.) for the new source.

 

Remarks

This function adds a new source with default values to the associated FRED document. If there is a problem the function sets an error and returns -1.

 

See Also

T_ENTITY

AddSourceWavelengthSpec

IsSourceCoherent

IsSourcePolarized

SetSourceBeamOverlap

SetSourceCoherence

SetSourceMaterial

SetSourcePhase

SetSourcePolarization

SetSourcePosApodUniform

SetSourcePropagationSpec

SetSourceSecondaryRayCount

SetSourceSecondaryRayScale

SetSourceVisualization

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC