num#

DbElems.num(selected=False)[source]#

Number of elements.

Parameters:
selectedbool, optional

Return either the number of selected elements of the total number of elements.

Returns:
int

Number of elements. Set selected to True to include selection status.

Examples

Get the number of selected elements.

>>> elems = mapdl.db.elems
>>> elems.num(selected=True)
425