Skip to main content

Mechanical scripting interface 2025

`CMBlockCommand`

Last update: 09.03.2026

class Ansys.ACT.Automation.Mechanical.FE.CDB.CMBlockCommand

Bases: object

Represents a CMBLOCK command.

Overview

Properties

Name Description
Cmname Gets the component name.
Elements Gets the type of entities.
Format Gets the Format.
Index Gets the command index.
Name Gets the command name.
ToCdbCommandString Gets the command text formatted as a CDB file entry.
Type Gets the type of entities (node or elem).

Property detail

property CMBlockCommand.Cmname : str | None

Gets the component name.

property CMBlockCommand.Elements : tuple[int] | None

Gets the type of entities.

property CMBlockCommand.Format : str | None

Gets the Format.

property CMBlockCommand.Index : int | None

Gets the command index.

property CMBlockCommand.Name : str | None

Gets the command name.

property CMBlockCommand.ToCdbCommandString : Ansys.ACT.Automation.Mechanical.FE.CDB.CdbCommandFormatAndParameter | None

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

property CMBlockCommand.Type : str | None

Gets the type of entities (node or elem).

Connect with Ansys