Getting node ids which belong to an element

Hi there

I am looking for a cubit python command that allows me to get the node ids when given an element id.

For instance I have element id 5 which is a tet and contains 4 nodes with the ids 5 7 8 9

I can’t seam to find anything in the SDK document

Any tips would be great

Many thanks

You could use the parse_cubit_list function for this. To see an example of this:

reset
bri x 1
vol 1 int 1
vol 1 scheme tet
mesh vol 1

Then in the script tab type

print cubit.parse_cubit_list(“node”, “in tet 1”)

The output is the IDs of the nodes:

(1, 6, 7, 9)