Skip to main content

Mechanical scripting interface 2025

`CPCommand`

Last update: 16.07.2025

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

Bases: object

Represents a CP command.

Overview

Properties

Name Description
Dof Gets the degree of freedom label.
Index Gets the command index.
Name Gets the command name.
Ncp Gets the number of coupled nodes.
Nodes Gets the nodes.
ToCdbCommandString Gets the command text formatted as a CDB file entry.

Property detail

property CPCommand.Dof : str | None

Gets the degree of freedom label.

property CPCommand.Index : int | None

Gets the command index.

property CPCommand.Name : str | None

Gets the command name.

property CPCommand.Ncp : int | None

Gets the number of coupled nodes.

property CPCommand.Nodes : tuple[int] | None

Gets the nodes.

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