Skip to main content

ZOS-API interface 2025 R1

ZOSAPI.Editors.NCE.IObjectSources Interface Reference

Last update: 17.07.2025
Inheritance diagram for ZOSAPI.Editors.NCE.IObjectSources:

Properties

IEditorCell NumberOfLayoutRaysCell [get]
 
IEditorCell NumberOfAnalysisRaysCell [get]
 
IEditorCell PowerCell [get]
 
IEditorCell WaveNumberCell [get]
 
IEditorCell ColorNumberCell [get]
 
int NumberOfLayoutRays [get, set]
 
int NumberOfAnalysisRays [get, set]
 
double Power [get, set]
 
int WaveNumber [get, set]
 
int ColorNumber [get, set]
 
- Properties inherited from ZOSAPI.Editors.NCE.IObject
ObjectType Type [get]
 
INCERow Row [get]
 
bool IsValid [get]
 
long Id [get]
 

Detailed Description

Property Documentation

◆ ColorNumber

int ZOSAPI.Editors.NCE.IObjectSources.ColorNumber
getset

◆ ColorNumberCell

IEditorCell ZOSAPI.Editors.NCE.IObjectSources.ColorNumberCell
get

◆ NumberOfAnalysisRays

int ZOSAPI.Editors.NCE.IObjectSources.NumberOfAnalysisRays
getset

Usage (see Example 17 for a full sample)

C#

//Source point
IObjectTypeSettings oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint);
Object_1.ChangeType(oType_1);
IObjectSourcePoint Source1_data = Object_1.ObjectData as IObjectSourcePoint;
Source1_data.NumberOfLayoutRays = 3;
Source1_data.NumberOfAnalysisRays = 1000000;
Definition: InterfacesNCE.cs:4937
This interface is used for selecting any files required by a object, and for changing object types....
Definition: InterfacesNCE.cs:1110
Definition: InterfacesNCE.cs:19
Definition: InterfacesEditors.cs:12
The ZOSAPI namespace contains classes for initially connecting to zemax. See also ZOSAPI_Connection,...
Definition: IAS_FieldCurvatureAndDistortion.cs:5

C++

//Source point
IObjectTypeSettingsPtr oType_1 = Object_1->GetObjectTypeSettings(ObjectType_SourcePoint);
Object_1->ChangeType(oType_1);
IObjectSourcePointPtr Source1_data = Object_1->ObjectData;
// Proterties NumberOfLayoutRays and NumberOfAnalysisRays belong to base interface IObjectSources. To use these properties, cast to IObjectSources first.
IObjectSourcesPtr caseIObjSources = Source1_data;
caseIObjSources->NumberOfLayoutRays = 3;
caseIObjSources->NumberOfAnalysisRays = 1000000;

Matlab

% Source point
oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint);
Object_1.ChangeType(oType_1);
Source1_data = Object_1.ObjectData;
Source1_data.NumberOfLayoutRays = 3;
Source1_data.NumberOfAnalysisRays = 1000000;

Python

# Source point
oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint)
Object_1.ChangeType(oType_1)
Source1_data = Object_1.ObjectData
Source1_data.NumberOfLayoutRays = 3
Source1_data.NumberOfAnalysisRays = 1000000

◆ NumberOfAnalysisRaysCell

IEditorCell ZOSAPI.Editors.NCE.IObjectSources.NumberOfAnalysisRaysCell
get

◆ NumberOfLayoutRays

int ZOSAPI.Editors.NCE.IObjectSources.NumberOfLayoutRays
getset

Usage (see Example 17 for a full sample)

C#

//Source point
IObjectTypeSettings oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint);
Object_1.ChangeType(oType_1);
IObjectSourcePoint Source1_data = Object_1.ObjectData as IObjectSourcePoint;
Source1_data.NumberOfLayoutRays = 3;
Source1_data.NumberOfAnalysisRays = 1000000;

C++

//Source point
IObjectTypeSettingsPtr oType_1 = Object_1->GetObjectTypeSettings(ObjectType_SourcePoint);
Object_1->ChangeType(oType_1);
IObjectSourcePointPtr Source1_data = Object_1->ObjectData;
// Proterties NumberOfLayoutRays and NumberOfAnalysisRays belong to base interface IObjectSources. To use these properties, cast to IObjectSources first.
IObjectSourcesPtr caseIObjSources = Source1_data;
caseIObjSources->NumberOfLayoutRays = 3;
caseIObjSources->NumberOfAnalysisRays = 1000000;

Matlab

% Source point
oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint);
Object_1.ChangeType(oType_1);
Source1_data = Object_1.ObjectData;
Source1_data.NumberOfLayoutRays = 3;
Source1_data.NumberOfAnalysisRays = 1000000;

Python

# Source point
oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint)
Object_1.ChangeType(oType_1)
Source1_data = Object_1.ObjectData
Source1_data.NumberOfLayoutRays = 3
Source1_data.NumberOfAnalysisRays = 1000000

◆ NumberOfLayoutRaysCell

IEditorCell ZOSAPI.Editors.NCE.IObjectSources.NumberOfLayoutRaysCell
get

◆ Power

double ZOSAPI.Editors.NCE.IObjectSources.Power
getset

◆ PowerCell

IEditorCell ZOSAPI.Editors.NCE.IObjectSources.PowerCell
get

◆ WaveNumber

int ZOSAPI.Editors.NCE.IObjectSources.WaveNumber
getset

◆ WaveNumberCell

IEditorCell ZOSAPI.Editors.NCE.IObjectSources.WaveNumberCell
get

Connect with Ansys