Skip to main content

Mechanical scripting interface 2025

`ISelectionManager`

Last update: 16.07.2025

class Ansys.ACT.Interfaces.Common.ISelectionManager

Bases: object

Defines a selection manager.

Overview

Methods

Name Description
AddSelection Adds a new selection to the current selection.
ClearSelection Clears the current selection.
CreateSelectionInfo Creates a new selection information based on its type.
NewSelection Creates a new selection.

Properties

Name Description
CurrentSelection Gets the current selection.

Property detail

property ISelectionManager.CurrentSelection : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets the current selection.

Method detail

ISelectionManager.AddSelection(info: Ansys.ACT.Interfaces.Common.ISelectionInfo) → None

Adds a new selection to the current selection.

ISelectionManager.ClearSelection() → None

Clears the current selection.

ISelectionManager.CreateSelectionInfo(selectionType: Ansys.ACT.Interfaces.Common.SelectionTypeEnum) → Ansys.ACT.Interfaces.Common.ISelectionInfo

Creates a new selection information based on its type.

ISelectionManager.NewSelection(info: Ansys.ACT.Interfaces.Common.ISelectionInfo) → None

Creates a new selection.

Connect with Ansys