Skip to main content

Mechanical scripting interface

SelectionWorksheet

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.SelectionWorksheet

Bases: object

SelectionWorksheet class.

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()

Adds a Row to the worksheet.

SelectionWorksheet.DeleteRow(index: int)

Deletes a row from the worksheet at index.

SelectionWorksheet.Generate()

Generate the selection from the worksheet.

SelectionWorksheet.GetAction(index: int)

Gets the worksheet Action property at index.

SelectionWorksheet.GetBodyTypeValue(index: int)

Gets the worksheet Body Type Value property at index.

SelectionWorksheet.GetCoordinateSystemSelection(index: int)

Gets the worksheet CoordinateSystemSelection property at index.

SelectionWorksheet.GetCriterion(index: int)

Gets the worksheet Criterion property at index.

SelectionWorksheet.GetCriterionActive(index: int)

Gets the worksheet CriterionActive property at index.

SelectionWorksheet.GetEdgeTypeValue(index: int)

Gets the worksheet Edge Type Value property at index.

SelectionWorksheet.GetFaceTypeValue(index: int)

Gets the worksheet Face Type Value property at index.

SelectionWorksheet.GetGeometryType(index: int)

Gets the worksheet GeometryType property at index.

SelectionWorksheet.GetLowerBound(index: int)

Gets the worksheet LowerBound property at index.

SelectionWorksheet.GetMeshElementTypeValue(index: int)

Gets the worksheet Mesh Element Type Value property at index.

SelectionWorksheet.GetOperator(index: int)

Gets the worksheet Operator property at index.

SelectionWorksheet.GetStringValue(index: int)

Gets the worksheet StringValue property at index.

SelectionWorksheet.GetTag(index: int)

Gets the worksheet Tag property at index.

SelectionWorksheet.GetUpperBound(index: int)

Gets the worksheet UpperBound property at index.

SelectionWorksheet.GetValue(index: int)

Gets the worksheet Value property at index.

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

Sets the worksheet Action property at index.

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

Sets the worksheet Body Type Value property at index.

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

Sets the worksheet CoordinateSystemSelection property at index.

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

Sets the worksheet Criterion property at index.

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

Sets the worksheet CriterionActive property at index.

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

Sets the worksheet Edge Type Value property at index.

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

Sets the worksheet GeometryType property at index.

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

Sets the worksheet Face Type Value property at index.

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

Sets the worksheet LowerBound property at index.

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

Sets the worksheet Mesh Element Type Value property at index.

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

Sets the worksheet Operator property at index.

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

Sets the worksheet StringValue property at index.

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

Sets the worksheet Tag property at index.

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

Sets the worksheet UpperBound property at index.

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

Sets the worksheet Value property at index.