TreeGroupingFolder Model.AddTreeGroupingFolder(IEnumerable dataModelObjects)
Move the Data Model Objects to a new TreeGroupingFolder.
Examples
# Below are acceptable uses of AddTreeGroupingFolder
folder = Model.AddTreeGroupingFolder(Tree.ActiveObjects)
folder = Model.AddTreeGroupingFolder(Tree.FirstActiveObject)
folder = Model.AddTreeGroupingFolder([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 = Model.AddTreeGroupingFolder([
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 = Model.AddTreeGroupingFolder(dmo_list.Ids)
Return Value
TreeGroupingFolderObject