Mapdl.get(par='__floatparameter__', entity='', entnum='', item1='', it1num='', item2='', it2num='', **kwargs)

Retrieves a value and stores it as a scalar parameter or part of an array parameter.

APDL Command: *GET

See the full MADPL command at *GET

GET retrieves a value for a specified item and stores the value as a scalar parameter, or as a value in a user-named array parameter. An item is identified by various keyword, label, and number combinations. Usage is similar to the SET command except that the parameter values are retrieved from previously input or calculated results. For example, GET,A,ELEM,5,CENT,X returns the centroid x-location of element 5 and stores the result as parameter A. GET command operations, along with the associated Get functions return values in the active coordinate system unless stated otherwise. A Get function is an alternative in- line function that can be used to retrieve a value instead of the GET command (see Using In-line Get Functions for more information).

Both GET and VGET retrieve information from the active data stored in memory. The database is often the source, and sometimes the information is retrieved from common memory blocks that the program uses to manipulate information. Although POST1 and POST26 operations use a .rst file, GET data is accessed from the database or from the common blocks. Get operations do not access the .rst file directly. For repeated gets of sequential items, such as from a series of elements, see the VGET command.

Most items are stored in the database after they are calculated and are available anytime thereafter. Items are grouped according to where they are usually first defined or calculated. Preprocessing data will often not reflect the calculated values generated from section data. Do not use GET to obtain data from elements that use calculated section data, such as beams or shells. Most of the general items listed below are available from all modules.

parstr, optional

The name of the resulting parameter. See *SET for name restrictions.


Entity keyword. Valid keywords are NODE, ELEM, KP, LINE, AREA, VOLU, PDS, etc., as shown for Entity = in the tables below.


The number or label for the entity (as shown for ENTNUM = in the tables below). In some cases, a zero (or blank) ENTNUM represents all entities of the set.


The name of a particular item for the given entity.


The number (or label) for the specified Item1 (if any). Valid IT1NUM values are as shown in the IT1NUM columns of the tables below. Some Item1 labels do not require an IT1NUM value.

item2, it2num

A second set of item labels and numbers to further qualify the item for which data are to be retrieved. Most items do not require this level of information.


Floating point value of the parameter.


Retrieve the number of nodes

>>> value = mapdl.get('val', 'node', '', 'count')
>>> value

Retrieve the number of nodes using keywords. Note that the parameter name is optional.

>>> value = mapdl.get(entity='node', item1='count')
>>> value