Tree#
Overview#
GetTreeHandler method. |
|
IsObjInTreeView method. |
|
OnActiveObjectChangedFwd method. |
|
add_OnActiveObjectChanged method. |
|
remove_OnActiveObjectChanged method. |
selects an object in the tree. |
|
CanAddTreeGroupingFolder method. |
|
Clears the current filter. |
|
Clears the current sort. |
|
Click method. |
|
CreateObjRef method. |
|
Equals method. |
|
ExpandBranch method. |
|
Filter method. |
|
Find method. |
|
GetDataModelChanges method. |
|
GetEnumerator method. |
|
GetHashCode method. |
|
GetLifetimeService method. |
|
Gets a list of all objects with the specified name. |
|
Gets a list of all objects with the specified type. |
|
Gets the full path that needs to be typed in order to go to the selected object. |
|
GetPathToObjectById method. |
|
GetType method. |
|
Groups a list of objects together. |
|
InitializeLifetimeService method. |
|
Checks if the tree is currently sorted alphabetically. |
|
Refreshes the tree. |
|
Sorts the tree objects based on given parameters. |
|
StartListening method. |
|
StopListening method. |
|
Prevents the tree from being updated. |
|
ToString method. |
|
TryGetFolder method. |
|
Removes groupingFolder from the tree. |
Gets a list of all selected objects. |
|
Gets a list of all objects available in the tree. |
|
Gets the current filter applied on the tree. |
|
Gets the current visibility. |
|
Gets the current search state. |
|
Gets the current search string (name/tag/propertyName/propertyValue). |
|
Gets the first object selected in the tree. |
|
Controls whether or not group folders are visible. |
Property detail#
- property Tree.ActiveObjects: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#
Gets a list of all selected objects.
- property Tree.AllObjects: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#
Gets a list of all objects available in the tree.
- property Tree.CurrentFilter: Ansys.Common.Interop.DSObjectTypes.DSTreeSearchType | None#
Gets the current filter applied on the tree.
- property Tree.CurrentSearchGraphics: Ansys.Mechanical.DataModel.Enums.VisibilityType | None#
Gets the current visibility.
- property Tree.CurrentSearchState: Ansys.Mechanical.DataModel.Enums.ObjectState | None#
Gets the current search state.
- property Tree.CurrentSearchString: str | None#
Gets the current search string (name/tag/propertyName/propertyValue).
- property Tree.FirstActiveObject: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#
Gets the first object selected in the tree.
Method detail#
- Tree.Activate(dataModelObject: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) None#
selects an object in the tree.
- Tree.CanAddTreeGroupingFolder(dataModelObject: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#
CanAddTreeGroupingFolder method.
- Tree.Filter(name: str, tag: str, 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: str, environment: Ansys.ACT.Automation.Mechanical.Analysis, scoping: Ansys.Mechanical.DataModel.Enums.TreeFilterScopingType, filterState: Ansys.Mechanical.DataModel.Enums.TreeFilterObjectState, propertyName: str, propertyValue: str, invertSearchResults: System.Nullable[bool]) None#
Filter method.
- Tree.Find(name: str, func: System.Func[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject, bool], tag: str, state: Ansys.Mechanical.DataModel.Enums.ObjectState) Iterable[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]#
Find method.
- Tree.GetDataModelChanges(added: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject], modified: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject], removed: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]) None#
GetDataModelChanges method.
- Tree.GetEnumerator() Ansys.ACT.Automation.Mechanical.TreeObjects#
GetEnumerator method.
- Tree.GetLifetimeService() Any#
GetLifetimeService method.
- Tree.GetObjectsByName(name: str) List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]#
Gets a list of all objects with the specified name.
- Tree.GetObjectsByType(type: Tree.GetObjectsByType.type) List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]#
Gets a list of all objects with the specified type.
- Tree.GetPathToFirstActiveObject() str#
Gets the full path that needs to be typed in order to go to the selected object.
- classmethod Tree.GetTreeHandler() Ansys.Common.Interop.SimulationUIHandlers.ISimulationTreeHandler#
GetTreeHandler method.
- Tree.Group(dataModelObjects: Iterable) Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#
Groups a list of objects together.
- Tree.InitializeLifetimeService() Any#
InitializeLifetimeService method.
- classmethod Tree.IsObjInTreeView(dataModelObj: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#
IsObjInTreeView method.
- classmethod Tree.OnActiveObjectChangedFwd(sender: Any, args: Any) None#
OnActiveObjectChangedFwd method.
- Tree.Sort(type: Ansys.Mechanical.DataModel.Enums.SortingType, reverse: bool) None#
Sorts the tree objects based on given parameters.
Type of sorting to apply.
Wheter to sort in reverse order.
Note that all parameters of Sort are optional.
type: Defaults to alphabetical
reverse: Defaults to false
sorting in reverse order is currently not supported
Usage example - sort alphabetically
ExtAPI.DataModel.Tree.Sort()
Usage example - sort alphabetically
ExtAPI.DataModel.Tree.Sort(type=SortingType.Alphabetical, reverse=False)
- Tree.Suspend() System.IDisposable#
Prevents the tree from being updated.
- Tree.TryGetFolder(obj: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#
TryGetFolder method.
- Tree.Ungroup(groupingFolder: Ansys.ACT.Automation.Mechanical.TreeGroupingFolder) None#
Removes groupingFolder from the tree.