    

 ## On this page

  

 

 # `CommandRepository`

 Last update: 16.07.2025 

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

#### *class* Ansys.ACT.Automation.Mechanical.FE.CommandRepository

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

Command repository.

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

## Overview

### Methods

NameDescription[`GetCommandByIndex`](#CommandRepository.GetCommandByIndex)Gets the commands by index.[`GetCommandName`](#CommandRepository.GetCommandName)Gets the name of commands of a type specified by params eCommandsType and index in the repository.[`GetCommandNames`](#CommandRepository.GetCommandNames)Gets the command names of a type specified by params eCommandsType and index in the repository.[`GetCommandNamesCount`](#CommandRepository.GetCommandNamesCount)Gets the number of commands of a type specified by param=eCommandsType in the repository.[`GetCommandsByName`](#CommandRepository.GetCommandsByName)Gets the commands by name.<a id="method-detail"></a>

## Method detail

<a id="CommandRepository.GetCommandByIndex"></a>

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

Gets the commands by index.

<a id="CommandRepository.GetCommandName"></a>

### CommandRepository.GetCommandName(eCommandsType: [Ansys.ACT.Automation.Mechanical.FE.CommandsType](CommandsType.md#ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.FE.CommandsType), index: [int](https://docs.python.org/3/library/functions.html#int))

Gets the name of commands of a type specified by params eCommandsType and index in the repository.

<a id="CommandRepository.GetCommandNames"></a>

### CommandRepository.GetCommandNames(eCommandsType: [Ansys.ACT.Automation.Mechanical.FE.CommandsType](CommandsType.md#ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.FE.CommandsType))

Gets the command names of a type specified by params eCommandsType and index in the repository.

<a id="CommandRepository.GetCommandNamesCount"></a>

### CommandRepository.GetCommandNamesCount(eCommandsType: [Ansys.ACT.Automation.Mechanical.FE.CommandsType](CommandsType.md#ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.FE.CommandsType))

Gets the number of commands of a type specified by param=eCommandsType in the repository.

<a id="CommandRepository.GetCommandsByName"></a>

### CommandRepository.GetCommandsByName(name: [str](https://docs.python.org/3/library/stdtypes.html#str))

Gets the commands by name.