    

 ## On this page

  

 

 # `EBlockCommand`

 Last update: 09.03.2026 

<a id="ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.FE.CDB.EBlockCommand"></a>

#### *class* Ansys.ACT.Automation.Mechanical.FE.CDB.EBlockCommand

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

Represents an EBLOCK command.

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

## Overview

### Properties

NameDescription[`Elements`](#EBlockCommand.Elements)Gets the elements.[`Format`](#EBlockCommand.Format)Gets the format.[`Index`](#EBlockCommand.Index)Gets the command index.[`Name`](#EBlockCommand.Name)Gets the command name.[`ToCdbCommandString`](#EBlockCommand.ToCdbCommandString)Gets the command text formatted as a CDB file entry.<a id="property-detail"></a>

## Property detail

<a id="EBlockCommand.Elements"></a>

### *property* EBlockCommand.Elements *: [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[[Ansys.ACT.Automation.Mechanical.FE.CDB.CommandElement](CommandElement.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.FE.CDB.CommandElement)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the elements.

<a id="EBlockCommand.Format"></a>

### *property* EBlockCommand.Format *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the format.

<a id="EBlockCommand.Index"></a>

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

Gets the command index.

<a id="EBlockCommand.Name"></a>

### *property* EBlockCommand.Name *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the command name.

<a id="EBlockCommand.ToCdbCommandString"></a>

### *property* EBlockCommand.ToCdbCommandString *: Ansys.ACT.Automation.Mechanical.FE.CDB.CdbCommandFormatAndParameter | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the command text formatted as a CDB file entry. Gets the command parameters formatted as a string.