Select a cell in python script

I am using Python script to select a cell in the mesh.
I want to get its information: its nodes and their coordinates.

What is the command in the script to select a cell?

Thank you.

How do you want to select ? Location ? CellId ?

I want to select a cell and then be able to get it’s nodes and coordinates.

I need to do this large number of time. So I need to know how can I do this in Python script.


How do you want to select ?

I wan to use extract selection. And then go cell but cell in a Python script.

You seem to be missing the point of my question. In order to know if you can do your selection in Python, you need inform us how you want to perform the selection.

Do you use Edit->FindData ? Do you use the Select Cells on ou Select Cells Through tools ?

I used Edit -> FindData.

I don’t know how to save the selection using python.

Is there any way to do this?

Thanks a lot!

Yes indeed, here is an exemple :

sel=SelectPoints("RTData > 170")
e = ExtractSelection(Selection=sel)
1 Like