Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Manipulating objects

getnumber

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Gets the number of objects that are selected.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = getnumber;

Returns the number of objects that are selected;

 

Example

Add 2 microns to the radius of all objects named "circle".

select("circle");

for (i=1:getnumber) {

 rad=get("radius",i);

 set("radius",rad+2e-6,i);

}

 

See Also

Manipulating objects, get, getnamed, getnamednumber, set

Copyright Lumerical Inc. | Privacy | Site Map