Skip to main content

Mechanical scripting interface 2026 R1

`MeshControlWorksheet`

Last update: 09.03.2026

class Ansys.ACT.Automation.Mechanical.MeshControlWorksheet

Bases: object

Overview

Methods

Name Description
AddRow Add a row to the MeshControlWorksheet
ClearGenerateMesh Clear Mesh
DeleteAllRows Delete All Rows
DeleteRow Delete a row from the MeshControlWorksheet
GenerateAtRow Generate Mesh At Row
GenerateMesh Geneate Mesh
GetActiveState Gets the Active State property at row index
GetNamedSelection Gets the NamedSelection at row index
GetNamedSelectionId Gets the ID of the NamedSelection at row index
SetActiveState Sets the Active State property at row index
SetNamedSelection Sets the NamedSelection at row index
SetNamedSelectionId Sets the NamedSelection by ID at row index

Properties

Name Description
RowCount Gets the number of entries

Property detail

property MeshControlWorksheet.RowCount : int | None

Gets the number of entries

Method detail

MeshControlWorksheet.AddRow() → int

Add a row to the MeshControlWorksheet

MeshControlWorksheet.ClearGenerateMesh() → None

Clear Mesh

MeshControlWorksheet.DeleteAllRows() → None

Delete All Rows

MeshControlWorksheet.DeleteRow(index: int) → None

Delete a row from the MeshControlWorksheet

MeshControlWorksheet.GenerateAtRow(index: int) → None

Generate Mesh At Row

MeshControlWorksheet.GenerateMesh() → None

Geneate Mesh

MeshControlWorksheet.GetActiveState(index: int) → bool

Gets the Active State property at row index

MeshControlWorksheet.GetNamedSelection(index: int) → Ansys.ACT.Automation.Mechanical.NamedSelection

Gets the NamedSelection at row index

MeshControlWorksheet.GetNamedSelectionId(index: int) → int

Gets the ID of the NamedSelection at row index

MeshControlWorksheet.SetActiveState(index: int, value: bool) → None

Sets the Active State property at row index

MeshControlWorksheet.SetNamedSelection(index: int, value: Ansys.ACT.Automation.Mechanical.NamedSelection) → None

Sets the NamedSelection at row index

MeshControlWorksheet.SetNamedSelectionId(index: int, value: int) → None

Sets the NamedSelection by ID at row index

Connect with Ansys