    

 ## On this page

  

 

 # `MeshControlWorksheet`

 Last update: 16.07.2025 

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

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

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

MeshControlWorksheet class.

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

## Overview

### Methods

NameDescription[`AddRow`](#MeshControlWorksheet.AddRow)Add a row to the MeshControlWorksheet[`ClearGenerateMesh`](#MeshControlWorksheet.ClearGenerateMesh)Clear Mesh[`DeleteAllRows`](#MeshControlWorksheet.DeleteAllRows)Delete All Rows[`DeleteRow`](#MeshControlWorksheet.DeleteRow)Delete a row from the MeshControlWorksheet[`GenerateAtRow`](#MeshControlWorksheet.GenerateAtRow)Generate Mesh At Row[`GenerateMesh`](#MeshControlWorksheet.GenerateMesh)Geneate Mesh[`GetActiveState`](#MeshControlWorksheet.GetActiveState)Gets the Active State property at row index[`GetNamedSelection`](#MeshControlWorksheet.GetNamedSelection)Gets the NamedSelection at row index[`GetNamedSelectionId`](#MeshControlWorksheet.GetNamedSelectionId)Gets the ID of the NamedSelection at row index[`SetActiveState`](#MeshControlWorksheet.SetActiveState)Sets the Active State property at row index[`SetNamedSelection`](#MeshControlWorksheet.SetNamedSelection)Sets the NamedSelection at row index[`SetNamedSelectionId`](#MeshControlWorksheet.SetNamedSelectionId)Sets the NamedSelection by ID at row index### Properties

NameDescription[`RowCount`](#MeshControlWorksheet.RowCount)Gets the number of entries<a id="property-detail"></a>

## Property detail

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

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

Gets the number of entries

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

## Method detail

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

### MeshControlWorksheet.AddRow()

Add a row to the MeshControlWorksheet

<a id="MeshControlWorksheet.ClearGenerateMesh"></a>

### MeshControlWorksheet.ClearGenerateMesh()

Clear Mesh

<a id="MeshControlWorksheet.DeleteAllRows"></a>

### MeshControlWorksheet.DeleteAllRows()

Delete All Rows

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

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

Delete a row from the MeshControlWorksheet

<a id="MeshControlWorksheet.GenerateAtRow"></a>

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

Generate Mesh At Row

<a id="MeshControlWorksheet.GenerateMesh"></a>

### MeshControlWorksheet.GenerateMesh()

Geneate Mesh

<a id="MeshControlWorksheet.GetActiveState"></a>

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

Gets the Active State property at row index

<a id="MeshControlWorksheet.GetNamedSelection"></a>

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

Gets the NamedSelection at row index

<a id="MeshControlWorksheet.GetNamedSelectionId"></a>

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

Gets the ID of the NamedSelection at row index

<a id="MeshControlWorksheet.SetActiveState"></a>

### MeshControlWorksheet.SetActiveState(index: [int](https://docs.python.org/3/library/functions.html#int), value: [bool](https://docs.python.org/3/library/functions.html#bool))

Sets the Active State property at row index

<a id="MeshControlWorksheet.SetNamedSelection"></a>

### MeshControlWorksheet.SetNamedSelection(index: [int](https://docs.python.org/3/library/functions.html#int), value: [Ansys.ACT.Automation.Mechanical.NamedSelection](NamedSelection.md#ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.NamedSelection))

Sets the NamedSelection at row index

<a id="MeshControlWorksheet.SetNamedSelectionId"></a>

### MeshControlWorksheet.SetNamedSelectionId(index: [int](https://docs.python.org/3/library/functions.html#int), value: [int](https://docs.python.org/3/library/functions.html#int))

Sets the NamedSelection by ID at row index