Groups a list of objects together.
Examples
# Below are acceptable uses of Group
folder = Tree.Group(Tree.ActiveObjects)
folder = Tree.Group(Tree.FirstActiveObject)
folder = Tree.Group([12,41,47,48,49,51,52,60])
analysis_18 = DataModel.GetObjectById(18)
fixed_support_33 = analysis_18.AddFixedSupport()
displacement_34 = analysis_18.AddDisplacement()
frictionless_support_35 = analysis_18.AddFrictionlessSupport()
folder = Tree.Group([
fixed_support_33,
displacement_34,
frictionless_support_35
])
# (21,26) expands is short for object ids [21,22,23,24,25,26]
dmo_list = DataModelObjectList([fixed_support_33, (21,26), 60] + [ dmo for dmo in Tree.ActiveObjects ])
folder = Tree.Group(dmo_list.Ids)
Return Value
The new group folder, otherwise throws an exception.