I work extensively with scripts to run cubit. Is there a way I can get the id’s of the children of objects? For example, can I get the id’s of the two vertexes of a line?
From the command line, you can do things such as:
List vertex in curve 1
That will display information about each of its attached vertices, including their location and id number
Or
Locate vertex in curve 1
will display on the screen the id numbers of the attached vertices.
You can also use the python interface to get ids of parents and children.
If you are using GeomEntity Class member functions you can get the vertices attached to the curves like this
vertices = curve.vertices()
You can also use the the CubitInterface class member functions. You can use:
vertex_list = cubit.get_relatives(“curve”, 12, “vertex”)
I hope this helps.