Skip to main content

Mechanical scripting interface

CommandRepository

Last update: 14.01.2025

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

Bases: object

Command repository.

Overview

Methods

Name Description
GetCommandByIndex Gets the commands by index.
GetCommandName Gets the name of commands of a type specified by params eCommandsType and index in the repository.
GetCommandNames Gets the command names of a type specified by params eCommandsType and index in the repository.
GetCommandNamesCount Gets the number of commands of a type specified by param=eCommandsType in the repository.
GetCommandsByName Gets the commands by name.

Method detail

CommandRepository.GetCommandByIndex(index: int)

Gets the commands by index.

CommandRepository.GetCommandName(eCommandsType: Ansys.ACT.Automation.Mechanical.FE.CommandsType, index: int)

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

CommandRepository.GetCommandNames(eCommandsType: Ansys.ACT.Automation.Mechanical.FE.CommandsType)

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

CommandRepository.GetCommandNamesCount(eCommandsType: Ansys.ACT.Automation.Mechanical.FE.CommandsType)

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

CommandRepository.GetCommandsByName(name: str)

Gets the commands by name.