Skip to main content

Mechanical scripting interface 2026 R1

`NSMassCommand`

Last update: 09.03.2026

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

Bases: object

Holds definitions for the NSMASS Command from APDL used in External Model. Refer to APDL command definition for more details.

Overview

Properties

Name Description
Action Gets the action to perform on the elements, ADD, DEL or LIST.
Distribution Gets the nonstructural mass distribution method to apply. Valid only when Unit is total_mass.
Elem Gets the name of the component or component group to which is applied the nonstructural mass.
Index Gets the command index.
Name Gets the command name.
Unit Gets the unit of the input value of nonstructural mass.
Val Gets the input value of the nonstructural mass.

Property detail

property NSMassCommand.Action : str | None

Gets the action to perform on the elements, ADD, DEL or LIST.

property NSMassCommand.Distribution : int | None

Gets the nonstructural mass distribution method to apply. Valid only when Unit is total_mass.

property NSMassCommand.Elem : str | None

Gets the name of the component or component group to which is applied the nonstructural mass.

property NSMassCommand.Index : int | None

Gets the command index.

property NSMassCommand.Name : str | None

Gets the command name.

property NSMassCommand.Unit : int | None

Gets the unit of the input value of nonstructural mass.

property NSMassCommand.Val : float | None

Gets the input value of the nonstructural mass.

Connect with Ansys