    

 ## On this page

  

 

 # `SelectionWorksheet`

 Last update: 16.07.2025 

<a id="ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.SelectionWorksheet"></a>

#### *class* Ansys.ACT.Automation.Mechanical.SelectionWorksheet

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

SelectionWorksheet class.

<a id="overview"></a>

## Overview

### Methods

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

Name[`RowCount`](#SelectionWorksheet.RowCount)<a id="property-detail"></a>

## Property detail

<a id="SelectionWorksheet.RowCount"></a>

### *property* SelectionWorksheet.RowCount *: [int](https://docs.python.org/3/library/functions.html#int) | [None](https://docs.python.org/3/library/constants.html#None)*

<a id="method-detail"></a>

## Method detail

<a id="SelectionWorksheet.AddRow"></a>

### SelectionWorksheet.AddRow()

Adds a Row to the worksheet.

<a id="SelectionWorksheet.DeleteRow"></a>

### SelectionWorksheet.DeleteRow(index: [int](https://docs.python.org/3/library/functions.html#int))

Deletes a row from the worksheet at index.

<a id="SelectionWorksheet.Generate"></a>

### SelectionWorksheet.Generate()

Generate the selection from the worksheet.

<a id="SelectionWorksheet.GetAction"></a>

### SelectionWorksheet.GetAction(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Action property at index.

<a id="SelectionWorksheet.GetBodyTypeValue"></a>

### SelectionWorksheet.GetBodyTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Body Type Value property at index.

<a id="SelectionWorksheet.GetCoordinateSystemSelection"></a>

### SelectionWorksheet.GetCoordinateSystemSelection(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet CoordinateSystemSelection property at index.

<a id="SelectionWorksheet.GetCriterion"></a>

### SelectionWorksheet.GetCriterion(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Criterion property at index.

<a id="SelectionWorksheet.GetCriterionActive"></a>

### SelectionWorksheet.GetCriterionActive(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet CriterionActive property at index.

<a id="SelectionWorksheet.GetEdgeTypeValue"></a>

### SelectionWorksheet.GetEdgeTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Edge Type Value property at index.

<a id="SelectionWorksheet.GetFaceTypeValue"></a>

### SelectionWorksheet.GetFaceTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Face Type Value property at index.

<a id="SelectionWorksheet.GetGeometryType"></a>

### SelectionWorksheet.GetGeometryType(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet GeometryType property at index.

<a id="SelectionWorksheet.GetLowerBound"></a>

### SelectionWorksheet.GetLowerBound(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet LowerBound property at index.

<a id="SelectionWorksheet.GetMeshElementTypeValue"></a>

### SelectionWorksheet.GetMeshElementTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Mesh Element Type Value property at index.

<a id="SelectionWorksheet.GetOperator"></a>

### SelectionWorksheet.GetOperator(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Operator property at index.

<a id="SelectionWorksheet.GetStringValue"></a>

### SelectionWorksheet.GetStringValue(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet StringValue property at index.

<a id="SelectionWorksheet.GetTag"></a>

### SelectionWorksheet.GetTag(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Tag property at index.

<a id="SelectionWorksheet.GetUpperBound"></a>

### SelectionWorksheet.GetUpperBound(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet UpperBound property at index.

<a id="SelectionWorksheet.GetValue"></a>

### SelectionWorksheet.GetValue(index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the worksheet Value property at index.

<a id="SelectionWorksheet.SetAction"></a>

### SelectionWorksheet.SetAction(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetAction)

Sets the worksheet Action property at index.

<a id="SelectionWorksheet.SetBodyTypeValue"></a>

### SelectionWorksheet.SetBodyTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetBodyTypeValues)

Sets the worksheet Body Type Value property at index.

<a id="SelectionWorksheet.SetCoordinateSystemSelection"></a>

### SelectionWorksheet.SetCoordinateSystemSelection(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [int](https://docs.python.org/3/library/functions.html#int))

Sets the worksheet CoordinateSystemSelection property at index.

<a id="SelectionWorksheet.SetCriterion"></a>

### SelectionWorksheet.SetCriterion(index: [int](https://docs.python.org/3/library/functions.html#int), value: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetCriterion)

Sets the worksheet Criterion property at index.

<a id="SelectionWorksheet.SetCriterionActive"></a>

### SelectionWorksheet.SetCriterionActive(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [bool](https://docs.python.org/3/library/functions.html#bool))

Sets the worksheet CriterionActive property at index.

<a id="SelectionWorksheet.SetEdgeTypeValue"></a>

### SelectionWorksheet.SetEdgeTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetEdgeTypeValues)

Sets the worksheet Edge Type Value property at index.

<a id="SelectionWorksheet.SetEntityType"></a>

### SelectionWorksheet.SetEntityType(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetEntityType)

Sets the worksheet GeometryType property at index.

<a id="SelectionWorksheet.SetFaceTypeValue"></a>

### SelectionWorksheet.SetFaceTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetFaceTypeValues)

Sets the worksheet Face Type Value property at index.

<a id="SelectionWorksheet.SetLowerBound"></a>

### SelectionWorksheet.SetLowerBound(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [float](https://docs.python.org/3/library/functions.html#float))

Sets the worksheet LowerBound property at index.

<a id="SelectionWorksheet.SetMeshElementTypeValue"></a>

### SelectionWorksheet.SetMeshElementTypeValue(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [Ansys.Mechanical.DataModel.Enums.MeshElementShape](../../../Mechanical/DataModel/Enums/MeshElementShape.md#ansys.mechanical.stubs.v242.Ansys.Mechanical.DataModel.Enums.MeshElementShape))

Sets the worksheet Mesh Element Type Value property at index.

<a id="SelectionWorksheet.SetOperator"></a>

### SelectionWorksheet.SetOperator(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetOperator](../../../Mechanical/DataModel/Enums/NamedSelectionWorksheetOperator.md#ansys.mechanical.stubs.v242.Ansys.Mechanical.DataModel.Enums.NamedSelectionWorksheetOperator))

Sets the worksheet Operator property at index.

<a id="SelectionWorksheet.SetStringValue"></a>

### SelectionWorksheet.SetStringValue(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [str](https://docs.python.org/3/library/stdtypes.html#str))

Sets the worksheet StringValue property at index.

<a id="SelectionWorksheet.SetTag"></a>

### SelectionWorksheet.SetTag(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [str](https://docs.python.org/3/library/stdtypes.html#str))

Sets the worksheet Tag property at index.

<a id="SelectionWorksheet.SetUpperBound"></a>

### SelectionWorksheet.SetUpperBound(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [float](https://docs.python.org/3/library/functions.html#float))

Sets the worksheet UpperBound property at index.

<a id="SelectionWorksheet.SetValue"></a>

### SelectionWorksheet.SetValue(index: [int](https://docs.python.org/3/library/functions.html#int), newVal: [float](https://docs.python.org/3/library/functions.html#float))

Sets the worksheet Value property at index.