coord#

DbNodes.coord(inod)#

Return the location of a node.

Parameters:
inodint

Node number.

Returns:
int

Selection status:

  • 0 - node is selected

  • 1 - node is not defined

  • -1 - node is unselected

tuple

Coordinates (first 3 values) and rotation angles (last 3 values).

Examples

Return the selection status and the coordinates of node 22.

>>> nodes = mapdl.db.nodes
>>> sel, coord = nodes.coord(22)
>>> coord
(1.0, 0.5, 0.0, 0.0, 0.0, 0.0)