Also, you could use the parse_cubit_list() functionality as described here.
cubit.parse_cubit_list("surface", f'with name "{surfName}"')
Which will return a tuple (e.g. (589,) )… if it’s empty (i.e. () ), the surface doesn’t exist.
Also, you could use the parse_cubit_list() functionality as described here.
cubit.parse_cubit_list("surface", f'with name "{surfName}"')
Which will return a tuple (e.g. (589,) )… if it’s empty (i.e. () ), the surface doesn’t exist.