Skip to main content

Mechanical scripting interface 2026 R1

`CMCommand`

Last update: 09.03.2026

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

Bases: object

Holds definitions for the CM Command from APDL used in External Model. This command groups geometry items into a component.

Overview

Properties

Name Description
Cname Gets the component name defined in the CM Command.
Index Gets the command index.
Name Gets the command name.
Type Gets the label identifying the type of geometry items to be grouped:

Property detail

property CMCommand.Cname : str | None

Gets the component name defined in the CM Command.

property CMCommand.Index : int | None

Gets the command index.

property CMCommand.Name : str | None

Gets the command name.

property CMCommand.Type : str | None

Gets the label identifying the type of geometry items to be grouped: (NODE, ELEM, VOLU…). Refer to MAPDL documentation for more information about the entity type.

Connect with Ansys