INCESourcesData SourcesData

INCESourcesData nceSD = Object_n.SourcesData;//  READ ONLY
 
if ( ! nceSD.IsSourcesAvailable)    //  READ ONLY
{
    continue;
}
nceSD.RandomPolarization = true;
nceSD.InitialPhaseDeg = 22.0;
nceSD.CoherenceLength = 42.0;
nceSD.Jx = 1.0;
nceSD.Jy = 2.0;
nceSD.XPhase = 3.0;
nceSD.YPhase = 4.0;
nceSD.ReverseRays = true;
nceSD.PrePropagation = 10;
nceSD.BulkScatter = SourceBulkScatterMode.Many;
nceSD.SamplingMethod = SourceSamplingMethod.Sobol;
nceSD.ArrayType = ArrayMode.Hexapolar;
nceSD.ArrayNumberX = 10;
nceSD.ArrayNumberY = 11;
nceSD.ArraySpacingX = 12.0;
nceSD.ArraySpacingY = 13.0;
nceSD.ArrayNumber = 22;
nceSD.ArrayRadius = 42.0;
nceSD.ArrayRings = 12;
nceSD.ArraySpacing = 22.0;
nceSD.SourceColor = SourceColorMode.CIE1931Tristimulus;
ISourceColorSettings tscs = nceSD.SourceColorSettings;      //  READ ONLY

Next: