AddContainerToEnvironment

Introduced

v4.0

Description

Creates a container under the environment. The container can be either a Group to contain an X3DObject or a folder object to contain a non-3DObject.

Scripting Syntax

oReturn = AddContainerToEnvironment( Environment, Type, [Support3DObject], [Name] );

Return Value

Returns the new container as either a Group (to contain X3DObject objects) or as a CollectionItem.

Parameters

Parameter Type Description
Environment SimulationEnvironment The environment where the new container will go.
Type String Specifies the type of group, this will be used to determine which group is operator is to be used when connecting a simulation on the environment.
Support3DObject Boolean Creates a group if set to true.

Default Value: true

Name String Name for the new container

Default Value: MyGroup

See Also

CreateEnvironment AddToContainer RemoveFromContainer CreateGroup RemoveFromGroup RemoveGroup Group