num#

DbNodes.num(selected=False)#

Return the number of nodes, either selected or all.

Parameters:
selectedbool, optional

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

Returns:
int

Number of nodes.

Return type:

int

Examples

Get the number of selected nodes.

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