    

 ## On this page

  

 

 # `CPCommand`

 Last update: 09.03.2026 

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

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

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

Represents a CP command.

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

## Overview

### Properties

NameDescription[`Dof`](#CPCommand.Dof)Gets the degree of freedom label.[`Index`](#CPCommand.Index)Gets the command index.[`Name`](#CPCommand.Name)Gets the command name.[`Ncp`](#CPCommand.Ncp)Gets the number of coupled nodes.[`Nodes`](#CPCommand.Nodes)Gets the nodes.[`ToCdbCommandString`](#CPCommand.ToCdbCommandString)Gets the command text formatted as a CDB file entry.<a id="property-detail"></a>

## Property detail

<a id="CPCommand.Dof"></a>

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

Gets the degree of freedom label.

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

### *property* CPCommand.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="CPCommand.Name"></a>

### *property* CPCommand.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="CPCommand.Ncp"></a>

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

Gets the number of coupled nodes.

<a id="CPCommand.Nodes"></a>

### *property* CPCommand.Nodes *: [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[[int](https://docs.python.org/3/library/functions.html#int)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the nodes.

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

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