Skip to main content

Mechanical scripting interface 2025

`CMGRPCommand`

Last update: 09.03.2026

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

Bases: object

Represents a CMGRP command.

Overview

Properties

Name Description
Aname Gets the assembly name.
Cnames Gets the component and/or assembly names.
Index Gets the command index.
Name Gets the command name.
ToCdbCommandString Gets the command text formatted as a CDB file entry.

Property detail

property CMGRPCommand.Aname : str | None

Gets the assembly name.

property CMGRPCommand.Cnames : tuple[str] | None

Gets the component and/or assembly names.

property CMGRPCommand.Index : int | None

Gets the command index.

property CMGRPCommand.Name : str | None

Gets the command name.

property CMGRPCommand.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.

Connect with Ansys