Skip to main content

Mechanical scripting interface 2025

`NCommand`

Last update: 09.03.2026

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

Bases: object

Represents a N command.

Overview

Properties

Name Description
Index Gets the command index.
Name Gets the command name.
Node Gets the node number.
ToCdbCommandString Gets the command text formatted as a CDB file entry.
Type Gets the type of the data to be defined.
Values Gets the values.

Property detail

property NCommand.Index : int | None

Gets the command index.

property NCommand.Name : str | None

Gets the command name.

property NCommand.Node : int | None

Gets the node number.

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

property NCommand.Type : str | None

Gets the type of the data to be defined.

property NCommand.Values : tuple[float] | None

Gets the values.

Connect with Ansys