Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Manipulating objects

addtogroup

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

Adds selected objects to a group.

 

Supported Product: FDTD, MODE, DEVICE

 

Syntax

Description

addtogroup("group_name");

Adds selected object(s) to a group. If a group with name "group_name" already exists, then the objects are added to the existing group. Otherwise, a group named "group_name" is created.

"group_name" can be an absolute path, such as "::model::G1"

 

Example

Add a substrate in to a group "G2", and subsequently move the substrate back to "G1"

addrect;

set("name","substrate");

select("substrate");

addtogroup("::model::G1::G2"); #this object is added to the group "G2"

 

# moves the rectangle back to G1

addtogroup("::model::G1");

 

See Also

Manipulating objects, addgroup, addstructuregroup, addanalysisgroup, adduserprop, runsetup

Copyright Lumerical Inc. | Privacy | Site Map