Skip to main content

Mechanical scripting interface 2025

`MPCommand`

Last update: 16.07.2025

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

Bases: object

Represents a MP command.

Overview

Properties

Name Description
C0 Gets the temperature-independent term of the property.
C1 Gets the coefficient of the linear term in the property-versus-temperature polynomial.
C2 Gets the coefficient of the quadratic term in the property-versus-temperature polynomial.
C3 Gets the coefficient of the cubic term in the property-versus-temperature polynomial.
C4 Gets the coefficient of the quartic term in the property-versus-temperature polynomial.
Index Gets the command index.
Lab Gets the label.
Mat Gets the material number.
Name Gets the command name.
ToCdbCommandString Gets the command text formatted as a CDB file entry.

Property detail

property MPCommand.C0 : float | None

Gets the temperature-independent term of the property.

property MPCommand.C1 : float | None

Gets the coefficient of the linear term in the property-versus-temperature polynomial.

property MPCommand.C2 : float | None

Gets the coefficient of the quadratic term in the property-versus-temperature polynomial.

property MPCommand.C3 : float | None

Gets the coefficient of the cubic term in the property-versus-temperature polynomial.

property MPCommand.C4 : float | None

Gets the coefficient of the quartic term in the property-versus-temperature polynomial.

property MPCommand.Index : int | None

Gets the command index.

property MPCommand.Lab : str | None

Gets the label.

property MPCommand.Mat : int | None

Gets the material number.

property MPCommand.Name : str | None

Gets the command name.

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