Creates a group in the Model and then
adds objects to the new Group.
Note: This method is not suitable with a referenced model. Using
this method with a referenced model will fail.
Group Model.AddGroup( Object in_pMembers, String in_bszName, Boolean in_bBranchMember ); |
oReturn = Model.AddGroup( [Members], [Name], [BranchMember] ); |
Parameter | Type | Description |
---|---|---|
Members | X3DObjectCollection or SceneItem | Members to add to the new group. |
Name | String | Name of the new group. |
BranchMember | Boolean | True to add new members as a branch members.
Default Value: False |
' ' This example demonstrates how to create a new sub model ' under the scene root and add all the 3dobjects that are ' under the scene root to this new model ' NewScene , false ActiveSceneRoot.AddModel ActiveSceneRoot.Children, "Sherman" |