Skip to main content

Mechanical scripting interface 2025

`SelectionWorksheet`

Last update: 16.07.2025

class Ansys.ACT.Automation.Mechanical.SelectionWorksheet

Bases: object

Overview

Methods

Name Description
AddRow Adds a Row to the worksheet.
DeleteRow Deletes a row from the worksheet at index.
Generate Generate the selection from the worksheet.
GetAction Gets the worksheet Action property at index.
GetBodyTypeValue Gets the worksheet Body Type Value property at index.
GetCoordinateSystemSelection Gets the worksheet CoordinateSystemSelection property at index.
GetCriterion Gets the worksheet Criterion property at index.
GetCriterionActive Gets the worksheet CriterionActive property at index.
GetEdgeTypeValue Gets the worksheet Edge Type Value property at index.
GetFaceTypeValue Gets the worksheet Face Type Value property at index.
GetGeometryType Gets the worksheet GeometryType property at index.
GetLowerBound Gets the worksheet LowerBound property at index.
GetMeshElementTypeValue Gets the worksheet Mesh Element Type Value property at index.
GetOperator Gets the worksheet Operator property at index.
GetStringValue Gets the worksheet StringValue property at index.
GetTag Gets the worksheet Tag property at index.
GetUpperBound Gets the worksheet UpperBound property at index.
GetValue Gets the worksheet Value property at index.
SetAction Sets the worksheet Action property at index.
SetBodyTypeValue Sets the worksheet Body Type Value property at index.
SetCoordinateSystemSelection Sets the worksheet CoordinateSystemSelection property at index.
SetCriterion Sets the worksheet Criterion property at index.
SetCriterionActive Sets the worksheet CriterionActive property at index.
SetEdgeTypeValue Sets the worksheet Edge Type Value property at index.
SetEntityType Sets the worksheet GeometryType property at index.
SetFaceTypeValue Sets the worksheet Face Type Value property at index.
SetLowerBound Sets the worksheet LowerBound property at index.
SetMeshElementTypeValue Sets the worksheet Mesh Element Type Value property at index.
SetOperator Sets the worksheet Operator property at index.
SetStringValue Sets the worksheet StringValue property at index.
SetTag Sets the worksheet Tag property at index.
SetUpperBound Sets the worksheet UpperBound property at index.
SetValue Sets the worksheet Value property at index.

Properties

Name
RowCount

Property detail

property SelectionWorksheet.RowCount : int | None

Method detail

SelectionWorksheet.AddRow() → int

Adds a Row to the worksheet.

SelectionWorksheet.DeleteRow(index: int) → None

Deletes a row from the worksheet at index.

SelectionWorksheet.Generate() → None

Generate the selection from the worksheet.

SelectionWorksheet.GetAction(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetAction

Gets the worksheet Action property at index.

SelectionWorksheet.GetBodyTypeValue(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetBodyTypeValues

Gets the worksheet Body Type Value property at index.

SelectionWorksheet.GetCoordinateSystemSelection(index: int) → int

Gets the worksheet CoordinateSystemSelection property at index.

SelectionWorksheet.GetCriterion(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetCriterion

Gets the worksheet Criterion property at index.

SelectionWorksheet.GetCriterionActive(index: int) → bool

Gets the worksheet CriterionActive property at index.

SelectionWorksheet.GetEdgeTypeValue(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetEdgeTypeValues

Gets the worksheet Edge Type Value property at index.

SelectionWorksheet.GetFaceTypeValue(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetFaceTypeValues

Gets the worksheet Face Type Value property at index.

SelectionWorksheet.GetGeometryType(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetEntityType

Gets the worksheet GeometryType property at index.

SelectionWorksheet.GetLowerBound(index: int) → float

Gets the worksheet LowerBound property at index.

SelectionWorksheet.GetMeshElementTypeValue(index: int) → Ansys.Mechanical.DataModel.Enums.MeshElementShape

Gets the worksheet Mesh Element Type Value property at index.

SelectionWorksheet.GetOperator(index: int) → Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetOperator

Gets the worksheet Operator property at index.

SelectionWorksheet.GetStringValue(index: int) → str

Gets the worksheet StringValue property at index.

SelectionWorksheet.GetTag(index: int) → str

Gets the worksheet Tag property at index.

SelectionWorksheet.GetUpperBound(index: int) → float

Gets the worksheet UpperBound property at index.

SelectionWorksheet.GetValue(index: int) → float

Gets the worksheet Value property at index.

SelectionWorksheet.SetAction(index: int, newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetAction) → None

Sets the worksheet Action property at index.

SelectionWorksheet.SetBodyTypeValue(index: int, newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetBodyTypeValues) → None

Sets the worksheet Body Type Value property at index.

SelectionWorksheet.SetCoordinateSystemSelection(index: int, newVal: int) → None

Sets the worksheet CoordinateSystemSelection property at index.

SelectionWorksheet.SetCriterion(index: int, value: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetCriterion) → None

Sets the worksheet Criterion property at index.

SelectionWorksheet.SetCriterionActive(index: int, newVal: bool) → None

Sets the worksheet CriterionActive property at index.

SelectionWorksheet.SetEdgeTypeValue(index: int, newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetEdgeTypeValues) → None

Sets the worksheet Edge Type Value property at index.

SelectionWorksheet.SetEntityType(index: int, newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetEntityType) → None

Sets the worksheet GeometryType property at index.

SelectionWorksheet.SetFaceTypeValue(index: int, newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetFaceTypeValues) → None

Sets the worksheet Face Type Value property at index.

SelectionWorksheet.SetLowerBound(index: int, newVal: float) → None

Sets the worksheet LowerBound property at index.

SelectionWorksheet.SetMeshElementTypeValue(index: int, newVal: Ansys.Mechanical.DataModel.Enums.MeshElementShape) → None

Sets the worksheet Mesh Element Type Value property at index.

SelectionWorksheet.SetOperator(index: int, newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetOperator) → None

Sets the worksheet Operator property at index.

SelectionWorksheet.SetStringValue(index: int, newVal: str) → None

Sets the worksheet StringValue property at index.

SelectionWorksheet.SetTag(index: int, newVal: str) → None

Sets the worksheet Tag property at index.

SelectionWorksheet.SetUpperBound(index: int, newVal: float) → None

Sets the worksheet UpperBound property at index.

SelectionWorksheet.SetValue(index: int, newVal: float) → None

Sets the worksheet Value property at index.

Connect with Ansys