Tree
#
Overview#
|
Refreshes the tree. |
|
Prevents the tree from being updated. |
|
Gets the full path that needs to be typed in order to go to the selected object. |
|
Find method. |
|
Sorts the tree objects based on given parameters. |
|
Clears the current sort. |
|
Filters the tree objects based on given parameters. |
|
Clears the current filter. |
|
Groups a list of objects together. |
|
Moves dataModelObject to new tree grouping folder. |
|
selects an object in the tree. |
|
Activate method. |
|
Checks if the tree is currently sorted alphabetically. |
|
Gets the first object selected in the tree. |
|
Gets a list of all selected objects. |
|
Gets a list of all objects available in the tree. |
|
Controls whether or not group folders are visible. |
|
Gets the current filter applied on the tree. |
|
Gets the current search string (name/tag/propertyName/propertyValue). |
|
Gets the current search state. |
|
Gets the current visibility. |
Property detail#
- property Tree.FirstActiveObject: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None
Gets the first object selected in the tree.
- property Tree.ActiveObjects: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None
Gets a list of all selected objects.
- property Tree.AllObjects: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None
Gets a list of all objects available in the tree.
- property Tree.GroupingFoldersVisible: System.Boolean | None
Controls whether or not group folders are visible.
- property Tree.CurrentFilter: Ansys.Common.Interop.DSObjectTypes.DSTreeSearchType | None
Gets the current filter applied on the tree.
- property Tree.CurrentSearchString: System.String | None
Gets the current search string (name/tag/propertyName/propertyValue).
- property Tree.CurrentSearchState: Ansys.Mechanical.DataModel.Enums.ObjectState | None
Gets the current search state.
- property Tree.CurrentSearchGraphics: Ansys.Mechanical.DataModel.Enums.VisibilityType | None
Gets the current visibility.
Method detail#
- Tree.Refresh() System.Void
Refreshes the tree.
- Tree.Suspend() System.IDisposable
Prevents the tree from being updated.
- Tree.GetPathToFirstActiveObject() System.String
Gets the full path that needs to be typed in order to go to the selected object.
- Tree.Find(name: System.String, func: System.Func[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject, System.Boolean], tag: System.String, state: Ansys.Mechanical.DataModel.Enums.ObjectState) System.Collections.Generic.IEnumerable[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]
Find method.
- Tree.Sort(type: Ansys.Mechanical.DataModel.Enums.SortingType, reverse: System.Boolean) System.Void
Sorts the tree objects based on given parameters.
type
reverse
- Tree.ClearSort() System.Void
Clears the current sort.
- Tree.Filter(name: System.String, tag: System.String, state: Ansys.Mechanical.DataModel.Enums.ObjectState, visibility: Ansys.Mechanical.DataModel.Enums.VisibilityType, type: Ansys.Mechanical.DataModel.Enums.TreeFilterObjectClass, coordinateSystem: Ansys.ACT.Automation.Mechanical.CoordinateSystem, model: System.String, environment: Ansys.ACT.Automation.Mechanical.Analysis, scoping: Ansys.Mechanical.DataModel.Enums.TreeFilterScopingType, filterState: Ansys.Mechanical.DataModel.Enums.TreeFilterObjectState, propertyName: System.String, propertyValue: System.String) System.Void
Filters the tree objects based on given parameters.
- Tree.ClearFilter() System.Void
Clears the current filter.
- Tree.Group(dataModelObjects: System.Collections.IEnumerable) Ansys.ACT.Automation.Mechanical.TreeGroupingFolder
Groups a list of objects together.
- Tree.Group(dataModelObject: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) Ansys.ACT.Automation.Mechanical.TreeGroupingFolder
Moves dataModelObject to new tree grouping folder.
- Tree.Activate(dataModelObject: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) System.Void
selects an object in the tree.
- Tree.Activate(dataModelObjects: System.Collections.Generic.IEnumerable[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]) System.Void
Activate method.
- Tree.IsSorted() System.Boolean
Checks if the tree is currently sorted alphabetically.