Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Manipulating objects

getnamednumber

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

Gets the number of objects with a given name.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = getnamednumber( "name");

The same as getnumber, but acts on objects with a specific name, instead of selected objects.

out = getnamednumber( "groupname::name");

The same as getnumber, but acts on all objects named "name" in the group "groupname", instead of selected objects.

 

Example

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

for (i=1:getnamednumber("circle")) {

 rad=getnamed("circle","radius",i);

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

}

 

See Also

Manipulating objects, get, getnamed, getnumber, set, setnamed

Copyright Lumerical Inc. | Privacy | Site Map